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

Unified Diff: tests/pnacl_dynamic_loading/nacl.scons

Issue 1841113002: PNaCl Dynamic Linking: Tests storing dependencies from command line in PLL. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 4 years, 9 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
Index: tests/pnacl_dynamic_loading/nacl.scons
diff --git a/tests/pnacl_dynamic_loading/nacl.scons b/tests/pnacl_dynamic_loading/nacl.scons
index 4966c94aa0387c85d299def647493c986bafb28d..88df0606969c7f33ed87e474a311400287bcd295 100644
--- a/tests/pnacl_dynamic_loading/nacl.scons
+++ b/tests/pnacl_dynamic_loading/nacl.scons
@@ -84,10 +84,18 @@ env.AddNodeToTestSuite(
# Use of the ConvertToPSO pass requires this toolchain version.
-if env['TOOLCHAIN_FEATURE_VERSION'] < 23:
+if env['TOOLCHAIN_FEATURE_VERSION'] < 24:
Return()
-test_pll = MakeAndTranslatePll('test_pll', 'test_pll.c')
+# TODO(smklein): These LLVM passes should be automatically applied by the
+# drivers. Once support for dependencies has been plumbed through the drivers,
+# use the "-l" linker flags and don't explicitly declare any LLVM passes.
+test_pll = MakeAndTranslatePso('test_pll', [env.ComponentObject('test_pll.c')],
+ llvm_passes='-nacl-global-cleanup -expand-varargs '
Mark Seaborn 2016/03/29 19:01:11 Nit: It's better for arguments to line up: // goo
Sean Klein 2016/03/29 19:43:56 Oops. Sorry, I know I've made this mistake before.
+ '-rewrite-pnacl-library-calls -rewrite-llvm-intrinsic-calls '
+ '-convert-to-pso -convert-to-pso-deps=libfoo.so,libbar.so '
+ '-pnacl-abi-simplify-postopt')
+
test_pll_tls = MakeAndTranslatePll('test_pll_tls', 'test_pll_tls.c')
pll_symbols_test = env.ComponentProgram(

Powered by Google App Engine
This is Rietveld 408576698