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

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: Fixed szbuild.py and improved 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') | no next file with comments »
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..caed29722f285d69ea552ac3d1f414aad864e5c8 100755
--- a/pydir/build-runtime.py
+++ b/pydir/build-runtime.py
@@ -84,6 +84,14 @@ def MakeRuntimesForTarget(target_info, ll_files,
shellcmd([GetObjcopyCmd(),
'--strip-symbol=NATIVE',
OutFile('{rtdir}/szrt_native_{target}.o')])
+ # Compile srcdir/szrt_asan.c to szrt_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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698