diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-04-15 20:27:38 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-04-15 20:27:38 +0300 |
commit | 3b36235cef2c1c5f3c79a33cb765de2ec1a2d01e (patch) | |
tree | 90484af211c2f391c65b7657e96f59a4869e316e /tests | |
parent | 1d249a48ea979729d1b818847dfbea3316cc527e (diff) |
Remove -O0 from tests CFLAGS so that optimized builds can be tested also
Diffstat (limited to 'tests')
-rw-r--r-- | tests/SConstruct | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/SConstruct b/tests/SConstruct index 0ad833d1..b411b48e 100644 --- a/tests/SConstruct +++ b/tests/SConstruct @@ -101,7 +101,7 @@ if 'gcc' in env['CC']: # GNU Compiler Collection # Debug info, warnings as errors - env.Append(CFLAGS = '-ansi -pedantic -g -O0 -Wall -Werror -fprofile-arcs -ftest-coverage -fstack-protector-all') + env.Append(CFLAGS = '-ansi -pedantic -g -Wall -Werror -fprofile-arcs -ftest-coverage -fstack-protector-all') env.Append(CORECFLAGS = '-Wextra') env.Append(LINKFLAGS = '-g --coverage') @@ -109,7 +109,7 @@ if 'gcc' in env['CC']: env.Append(CFLAGS = '-Wno-long-long') elif 'clang' in env['CC']: # CLang - env.Append(CFLAGS = '-ansi -g -O0 -Wall -Werror') + env.Append(CFLAGS = '-ansi -g -Wall -Werror') env.Append(CORECFLAGS = ' -Wextra -Wcast-qual -Wconversion') elif 'cl' in env['CC']: # Microsoft Visual C++ @@ -130,9 +130,9 @@ elif 'tcc' in env['CC']: env.SetDefault(CORECFLAGS = '') if 'clang' in env['CXX']: - env.Append(CXXFLAGS = '-g -O0 -Wall -Werror -Wextra -Wno-missing-field-initializers') + env.Append(CXXFLAGS = '-g -Wall -Werror -Wextra -Wno-missing-field-initializers') elif 'g++' in env['CXX'] or 'gcc' in env['CXX']: - env.Append(CXXFLAGS = '-g -O0 -Wall -Werror -Wextra -Wno-missing-field-initializers') + env.Append(CXXFLAGS = '-g -Wall -Werror -Wextra -Wno-missing-field-initializers') elif 'cl' in env['CXX']: env.Append(CXXFLAGS = '/Zi /W2 /WX') |