summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-05-04 17:08:15 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2015-05-04 17:25:44 +0200
commite67542ae17510e3657c2a946fde3dee4d775ac88 (patch)
tree5c382015945264864a01ee0a01ba8aa4fd5b0457 /common.gypi
parent279f6116aa7927532b8fab0b09a17709bc83c651 (diff)
downloadandroid-node-v8-e67542ae17510e3657c2a946fde3dee4d775ac88.tar.gz
android-node-v8-e67542ae17510e3657c2a946fde3dee4d775ac88.tar.bz2
android-node-v8-e67542ae17510e3657c2a946fde3dee4d775ac88.zip
build: disable -Og when building with clang
clang does not yet support -Og, fall back to -O0. See: https://llvm.org/bugs/show_bug.cgi?id=20765 Fixes: https://github.com/iojs/io.js/issues/1608 PR-URL: https://github.com/iojs/io.js/pull/1609 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi7
1 files changed, 6 insertions, 1 deletions
diff --git a/common.gypi b/common.gypi
index 36a416115e..385c3cd30a 100644
--- a/common.gypi
+++ b/common.gypi
@@ -54,8 +54,13 @@
'v8_enable_handle_zapping%': 1,
},
'defines': [ 'DEBUG', '_DEBUG' ],
- 'cflags': [ '-g', '-Og' ],
+ 'cflags': [ '-g' ],
'conditions': [
+ ['clang==1', {
+ 'cflags': [ '-O0' ], # https://llvm.org/bugs/show_bug.cgi?id=20765
+ }, {
+ 'cflags': [ '-Og' ], # Debug-friendly optimizations only.
+ }],
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',
}],