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

Unified Diff: SConstruct

Issue 616813002: Non-SFI Mode: Enable compiling exception_test for x86-32. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: space Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/exception_test/direction_flag_x86.S » ('j') | tests/exception_test/nacl.scons » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: SConstruct
diff --git a/SConstruct b/SConstruct
index 583f28173d0895c87c9063108ace73b6748edee3..1661234a75e88514aebf1029af1510114bbf969b 100755
--- a/SConstruct
+++ b/SConstruct
@@ -3034,6 +3034,14 @@ def AllowInlineAssembly(env):
return False
env.AddBiasForPNaCl()
env.PNaClForceNative()
+
+ if env.Bit('target_x86_32'):
+ env.AppendUnique(CCFLAGS=['--target=i686-unknown-nacl'])
+ elif env.Bit('target_x86_64'):
+ env.AppendUnique(CCFLAGS=['--target=x86_64-unknown-nacl'])
+ elif env.Bit('target_arm'):
+ env.AppendUnique(CCFLAGS=['--target=arm-unknown-nacl',
+ '-mfloat-abi=hard'])
Junichi Uekawa 2014/10/01 07:56:03 hmm.. It seems to be affecting existing ARM tests
return True
nacl_env.AddMethod(AllowInlineAssembly)
« no previous file with comments | « no previous file | tests/exception_test/direction_flag_x86.S » ('j') | tests/exception_test/nacl.scons » ('J')

Powered by Google App Engine
This is Rietveld 408576698