Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: CMakeLists.txt

Issue 1215463014: Modify how textual bitcode is injected into pnacl-sz. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in path set 3. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Support 7 Support
7 ) 8 )
8 9
9 file(GLOB pnacl_sz_SRCS "src/*.cpp") 10 file(GLOB pnacl_sz_SRCS "src/*.cpp")
10 add_llvm_tool(pnacl-sz ${pnacl_sz_SRCS}) 11 add_llvm_tool(pnacl-sz ${pnacl_sz_SRCS})
11 12
12 add_definitions( 13 if(PNACL_BROWSER_TRANSLATOR)
14 add_definitions(
15 -DALLOW_DUMP=0
16 -DALLOW_LLVM_CL=0
17 -DALLOW_LLVM_IR=0
18 -DALLOW_LLVM_IR_AS_INPUT=0
19 -DALLOW_DISABLE_IR_GEN=0
20 -DALLOW_MINIMAL_BUILD=1
21 -DPNACL_BROWSER_TRANSLATOR=1
22 )
23 else()
24 add_definitions(
13 -DALLOW_DUMP=1 25 -DALLOW_DUMP=1
14 -DALLOW_LLVM_CL=1 26 -DALLOW_LLVM_CL=1
15 -DALLOW_LLVM_IR=1 27 -DALLOW_LLVM_IR=1
16 -DALLOW_LLVM_IR_AS_INPUT=1 28 -DALLOW_LLVM_IR_AS_INPUT=1
17 -DALLOW_DISABLE_IR_GEN=1 29 -DALLOW_DISABLE_IR_GEN=1
18 -DALLOW_MINIMAL_BUILD=0 30 -DALLOW_MINIMAL_BUILD=0
19 -DINPUT_IS_TEXTUAL_BITCODE=0 31 -DPNACL_BROWSER_TRANSLATOR=0
20 ) 32 )
21
22 if(PNACL_BROWSER_TRANSLATOR)
23 add_definitions(-DPNACL_BROWSER_TRANSLATOR=1)
24 else()
25 add_definitions(-DPNACL_BROWSER_TRANSLATOR=0)
26 endif() 33 endif()
27 34
28 target_link_libraries(pnacl-sz pthread) 35 target_link_libraries(pnacl-sz pthread)
OLDNEW
« no previous file with comments | « no previous file | Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698