From a0fd3323ddaa3cb5123ea6a8beca9776ff134c02 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 14 Oct 2012 02:14:44 +0200 Subject: [PATCH] build: add default build flags to gyp script --- http_parser.gyp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http_parser.gyp b/http_parser.gyp index f1b0679..ef34eca 100644 --- a/http_parser.gyp +++ b/http_parser.gyp @@ -12,6 +12,7 @@ # RuntimeLibrary MUST MATCH across the entire project 'Debug': { 'defines': [ 'DEBUG', '_DEBUG' ], + 'cflags': [ '-Wall', '-Wextra', '-O0', '-g', '-ftrapv' ], 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 1, # static debug @@ -20,6 +21,7 @@ }, 'Release': { 'defines': [ 'NDEBUG' ], + 'cflags': [ '-Wall', '-Wextra', '-O3' ], 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 0, # static release