mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 03:13:13 +00:00
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>
This commit is contained in:
parent
279f6116aa
commit
e67542ae17
@ -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',
|
||||
}],
|
||||
|
Loading…
Reference in New Issue
Block a user