OLD | NEW |
1 set(LLVM_LINK_COMPONENTS | 1 set(LLVM_LINK_COMPONENTS |
2 ${LLVM_TARGETS_TO_BUILD} | 2 ${LLVM_TARGETS_TO_BUILD} |
3 Core | 3 Core |
4 IRReader | 4 IRReader |
5 NaClBitReader | 5 NaClBitReader |
6 NaClBitTestUtils | 6 NaClBitTestUtils |
7 Support | 7 Support |
8 ) | 8 ) |
9 | 9 |
10 file(GLOB pnacl_sz_SRCS "src/*.cpp") | 10 file(GLOB pnacl_sz_SRCS "src/*.cpp") |
11 add_llvm_tool(pnacl-sz ${pnacl_sz_SRCS}) | 11 add_llvm_tool(pnacl-sz ${pnacl_sz_SRCS}) |
12 | 12 |
13 if(PNACL_BROWSER_TRANSLATOR) | 13 if(PNACL_BROWSER_TRANSLATOR) |
14 add_definitions( | 14 add_definitions( |
15 -DALLOW_DUMP=0 | 15 -DALLOW_DUMP=0 |
16 -DALLOW_LLVM_CL=0 | 16 -DALLOW_LLVM_CL=0 |
17 -DALLOW_LLVM_IR=0 | 17 -DALLOW_LLVM_IR=0 |
18 -DALLOW_LLVM_IR_AS_INPUT=0 | 18 -DALLOW_LLVM_IR_AS_INPUT=0 |
| 19 -DALLOW_TIMERS=0 |
19 -DALLOW_MINIMAL_BUILD=1 | 20 -DALLOW_MINIMAL_BUILD=1 |
20 -DPNACL_BROWSER_TRANSLATOR=1 | 21 -DPNACL_BROWSER_TRANSLATOR=1 |
21 ) | 22 ) |
22 else() | 23 else() |
23 add_definitions( | 24 add_definitions( |
24 -DALLOW_DUMP=1 | 25 -DALLOW_DUMP=1 |
25 -DALLOW_LLVM_CL=1 | 26 -DALLOW_LLVM_CL=1 |
26 -DALLOW_LLVM_IR=1 | 27 -DALLOW_LLVM_IR=1 |
27 -DALLOW_LLVM_IR_AS_INPUT=1 | 28 -DALLOW_LLVM_IR_AS_INPUT=1 |
| 29 -DALLOW_TIMERS=1 |
28 -DALLOW_MINIMAL_BUILD=0 | 30 -DALLOW_MINIMAL_BUILD=0 |
29 -DPNACL_BROWSER_TRANSLATOR=0 | 31 -DPNACL_BROWSER_TRANSLATOR=0 |
30 ) | 32 ) |
31 endif() | 33 endif() |
32 | 34 |
33 target_link_libraries(pnacl-sz pthread) | 35 target_link_libraries(pnacl-sz pthread) |
OLD | NEW |