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

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: if defined() instead Created 6 years, 2 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 | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »
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'])
return True
nacl_env.AddMethod(AllowInlineAssembly)
« no previous file with comments | « no previous file | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698