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

Unified Diff: src/trusted/service_runtime/nacl.scons

Issue 758223003: Cleanup: Use Bit('build_ARCH') instead of Bit('target_ARCH') (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix + simplify Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/service_runtime/build.scons ('k') | src/trusted/validator/build.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/nacl.scons
diff --git a/src/trusted/service_runtime/nacl.scons b/src/trusted/service_runtime/nacl.scons
index 75e0337798c9c7eee46be7dcd7561cfe1be833c2..673fe1df80163ea9cf6800e35df4a26a668dfc9d 100644
--- a/src/trusted/service_runtime/nacl.scons
+++ b/src/trusted/service_runtime/nacl.scons
@@ -35,13 +35,13 @@ if env.Bit('bitcode'):
# Tests that require a NaCl module
# ----------------------------------------------------------
-if env.Bit('target_x86_32'):
+if env.Bit('build_x86_32'):
nacl_text_pad_asm = 'arch/x86_32/nacl_text_pad_test.S'
-elif env.Bit('target_x86_64'):
+elif env.Bit('build_x86_64'):
nacl_text_pad_asm = 'arch/x86_64/nacl_text_pad_test.S'
-elif env.Bit('target_arm'):
+elif env.Bit('build_arm'):
nacl_text_pad_asm = 'arch/arm/nacl_text_pad_test.S'
-elif env.Bit('target_mips32'):
+elif env.Bit('build_mips32'):
nacl_text_pad_asm = 'arch/mips/nacl_text_pad_test.S'
else:
raise Exception('unknown architecture')
@@ -53,13 +53,13 @@ def NewAsmEnv(env, defines, rodata_address, rwdata_address):
link_cmd = ('${LD} -static -e _start ${TEXT_START} ${RO_START} ${RW_START}' +
' -o ${TARGET} ${SOURCES}')
- if env.Bit('target_x86_32'):
+ if env.Bit('build_x86_32'):
link_cmd += ' -melf_i386_nacl'
- elif env.Bit('target_x86_64'):
+ elif env.Bit('build_x86_64'):
link_cmd += ' -melf_x86_64_nacl'
- elif env.Bit('target_arm'):
+ elif env.Bit('build_arm'):
link_cmd += ' -marmelf_nacl'
- elif env.Bit('target_mips32'):
+ elif env.Bit('build_mips32'):
link_cmd += ' -mmipselelf_nacl'
else:
raise Exception('unknown architecture')
« no previous file with comments | « src/trusted/service_runtime/build.scons ('k') | src/trusted/validator/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698