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') |