Reviewers: Jakob, jochen,

Message:
PTAL - this seems to not have the desired effect yet. I tried:

export CXX="$CLANG/clang++"
export LINK="$CLANG/clang++"
export ASAN_SYMBOLIZER_PATH="$CLANG/llvm-symbolizer"
GYPFLAGS="-Dasan=1"  make -j32 ia32.release.check

and I was hoping to get the same effect as with:

export LINK="$CLANG/clang++ -fsanitize=address"
export CXX="$CLANG/clang++ -fsanitize=address"
export ASAN_SYMBOLIZER_PATH="$CLANG/llvm-symbolizer"
make -j32 ia32.release.check

Description:
Add ASAN option to stand-alone gyp config.

BUG=

Please review this at https://codereview.chromium.org/196943004/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+19, -0 lines):
  M build/standalone.gypi


Index: build/standalone.gypi
diff --git a/build/standalone.gypi b/build/standalone.gypi
index cae63fe7ac58eb691dbc9f2d356bc969234647cb..b9a4f822569be4ee89a8d0cdda613d4ead1351a0 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -34,6 +34,7 @@
   'variables': {
     'component%': 'static_library',
     'clang%': 0,
+    'asan%': 0,
     'visibility%': 'hidden',
     'v8_enable_backtrace%': 0,
     'v8_enable_i18n_support%': 1,
@@ -169,6 +170,24 @@
     ],
   },
   'conditions': [
+    ['asan==1', {
+      'target_conditions': [
+        ['_toolset=="target"', {
+          'cflags': [
+            '-fno-omit-frame-pointer',
+            '-gline-tables-only',
+            '-fsanitize=address',
+            '-w',  # http://crbug.com/162783
+          ],
+          'cflags!': [
+            '-fomit-frame-pointer',
+          ],
+          'ldflags': [
+            '-fsanitize=address',
+          ],
+        }],
+      ],
+    }],
     ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
        or OS=="netbsd"', {
       'target_defaults': {


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to