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

Unified Diff: pydir/build-runtime.py

Issue 2068593003: Implemented linking to a dummy ASan runtime (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Added a test. Created 4 years, 6 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 | « Makefile.standalone ('k') | pydir/szbuild.py » ('j') | pydir/szbuild.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/build-runtime.py
diff --git a/pydir/build-runtime.py b/pydir/build-runtime.py
index cb923bad19b2fe0b15fd19c27db24d7182ccb0c6..bd86dce5da0d505c74f90b8484a40a6912727d9b 100755
--- a/pydir/build-runtime.py
+++ b/pydir/build-runtime.py
@@ -84,6 +84,15 @@ def MakeRuntimesForTarget(target_info, ll_files,
shellcmd([GetObjcopyCmd(),
'--strip-symbol=NATIVE',
OutFile('{rtdir}/szrt_native_{target}.o')])
+ # Compile srcdir/szrt_asan.c to
+ # tempdir/szrt_native_asan_{target}.o
+ shellcmd(['clang',
+ '-O2',
+ '-target=' + target_info.triple,
+ '-c',
+ '{srcdir}/szrt_asan.c'.format(srcdir=srcdir),
+ '-o', OutFile('{rtdir}/szrt_asan_{target}.o')
+ ], echo=verbose)
# Helper function for building the sandboxed runtime.
def MakeSandboxedRuntime():
« no previous file with comments | « Makefile.standalone ('k') | pydir/szbuild.py » ('j') | pydir/szbuild.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698