Skip to content

Commit

Permalink
build: disable -Og when building with clang
Browse files Browse the repository at this point in the history
clang does not yet support -Og, fall back to -O0.

Fixes: #1608
See: https://llvm.org/bugs/show_bug.cgi?id=20765
  • Loading branch information
bnoordhuis committed May 4, 2015
1 parent 279f611 commit f9ea440
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}],
Expand Down

0 comments on commit f9ea440

Please sign in to comment.