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

Unified Diff: chrome/test/data/nacl/nacl_test_data.gyp

Issue 391563003: Reland: Non-SFI NaCl: Fix browser_tests based on libc_free.c (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: the sanitizer build fix Created 6 years, 5 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 | chrome/test/data/nacl/nonsfi/libc_free.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/nacl/nacl_test_data.gyp
diff --git a/chrome/test/data/nacl/nacl_test_data.gyp b/chrome/test/data/nacl/nacl_test_data.gyp
index ea5e198cde0f3a5b8971e9d2d0648e2fef286092..a201a0511f85fcb07da09ce5900a2e64effe04bb 100644
--- a/chrome/test/data/nacl/nacl_test_data.gyp
+++ b/chrome/test/data/nacl/nacl_test_data.gyp
@@ -1139,6 +1139,11 @@
# Stack-Smashing protector does not work with libc-free context.
'-fno-stack-protector',
+ # Optimizers may translate the original code to code which
+ # requires builtin functions and/or relocations. Specifically,
+ # the LLVM's optimizer translates for-loop based zero
+ # clear to memset.
+ '-O0',
],
'cflags!': [
# We filter these out because release_extra_cflags or another
@@ -1148,15 +1153,26 @@
'-fstack-protector-all',
'-fprofile-generate',
'-finstrument-functions',
+ '-O2',
],
'ldflags': [
'-nostdlib',
'-shared',
+ # This binary cannot relocate itself, so we should have no
+ # undefined references left.
+ '-Wl,--no-undefined',
],
'ldflags!': [
# Explicitly remove the -pthread flag to avoid a link time warning.
'-pthread',
],
+ # Do not use any sanitizers tools, which require a few symbols.
+ 'cflags/': [
+ ['exclude', '-fsanitize'],
+ ],
+ 'ldflags/': [
+ ['exclude', '-fsanitize'],
+ ],
'defines': [
# The code depends on NaCl's headers. This is a macro for them.
'NACL_LINUX=1',
« no previous file with comments | « no previous file | chrome/test/data/nacl/nonsfi/libc_free.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698