Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Commit a0fd332

Browse files
committed
build: add default build flags to gyp script
1 parent ce6d7ef commit a0fd332

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

http_parser.gyp

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# RuntimeLibrary MUST MATCH across the entire project
1313
'Debug': {
1414
'defines': [ 'DEBUG', '_DEBUG' ],
15+
'cflags': [ '-Wall', '-Wextra', '-O0', '-g', '-ftrapv' ],
1516
'msvs_settings': {
1617
'VCCLCompilerTool': {
1718
'RuntimeLibrary': 1, # static debug
@@ -20,6 +21,7 @@
2021
},
2122
'Release': {
2223
'defines': [ 'NDEBUG' ],
24+
'cflags': [ '-Wall', '-Wextra', '-O3' ],
2325
'msvs_settings': {
2426
'VCCLCompilerTool': {
2527
'RuntimeLibrary': 0, # static release

0 commit comments

Comments
 (0)