Changeset 581:8a8ee1f6b268
- Timestamp:
- 09/07/08 09:30:34
(4 months ago)
- Author:
- Christian Kamm <kamm incasoftware de>
- branch:
- default
- Message:
Only link default native backend by default.
Use the new option --add-backend to link in additional targets.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r571 |
r581 |
|
| 5 | 5 | -- we always make vtables opaque, it simply kills performance... |
|---|
| 6 | 6 | OPAQUE_VTBLS = 1 |
|---|
| | 7 | |
|---|
| | 8 | -- enables additional backends |
|---|
| | 9 | addoption("add-backend", "Link in more than the native LLVM backend") |
|---|
| | 10 | EXTRA_BACKENDS="" |
|---|
| | 11 | if options["add-backend"] then |
|---|
| | 12 | EXTRA_BACKENDS=options["add-backend"] |
|---|
| | 13 | end |
|---|
| 7 | 14 | |
|---|
| 8 | 15 | -- use of boehm gc |
|---|
| … | … | |
| 56 | 63 | package.linkoptions = { |
|---|
| 57 | 64 | -- long but it's faster than just 'all' |
|---|
| 58 | | "`llvm-config --libs core asmparser bitreader bitwriter linker support target transformutils scalaropts ipo instrumentation x86 powerpc`", |
|---|
| | 65 | "`llvm-config --libs backend asmparser bitreader bitwriter linker ipo instrumentation " .. EXTRA_BACKENDS .. "`", |
|---|
| 59 | 66 | "`llvm-config --ldflags`", |
|---|
| 60 | 67 | } |
|---|