mirror of
https://github.com/nodejs/http-parser.git
synced 2025-10-16 23:33:42 +08:00
build: add default build flags to gyp script
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
# RuntimeLibrary MUST MATCH across the entire project
|
# RuntimeLibrary MUST MATCH across the entire project
|
||||||
'Debug': {
|
'Debug': {
|
||||||
'defines': [ 'DEBUG', '_DEBUG' ],
|
'defines': [ 'DEBUG', '_DEBUG' ],
|
||||||
|
'cflags': [ '-Wall', '-Wextra', '-O0', '-g', '-ftrapv' ],
|
||||||
'msvs_settings': {
|
'msvs_settings': {
|
||||||
'VCCLCompilerTool': {
|
'VCCLCompilerTool': {
|
||||||
'RuntimeLibrary': 1, # static debug
|
'RuntimeLibrary': 1, # static debug
|
||||||
@@ -20,6 +21,7 @@
|
|||||||
},
|
},
|
||||||
'Release': {
|
'Release': {
|
||||||
'defines': [ 'NDEBUG' ],
|
'defines': [ 'NDEBUG' ],
|
||||||
|
'cflags': [ '-Wall', '-Wextra', '-O3' ],
|
||||||
'msvs_settings': {
|
'msvs_settings': {
|
||||||
'VCCLCompilerTool': {
|
'VCCLCompilerTool': {
|
||||||
'RuntimeLibrary': 0, # static release
|
'RuntimeLibrary': 0, # static release
|
||||||
|
Reference in New Issue
Block a user