Skip to content

Commit

Permalink
Enable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Aug 25, 2020
1 parent 038878f commit 4202b7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ cxx_binary:
- cd lfortran-${lfortran_version}
- cmake
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -Wno-unused-parameter -fno-common -O3 -march=nehalem -funroll-loops -DNDEBUG"
-DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -O3 -march=nehalem -funroll-loops -DNDEBUG"
-DWITH_LLVM=yes
-DLFORTRAN_STATIC_BIN=yes
.
Expand Down
6 changes: 3 additions & 3 deletions cmake/UserOverride.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# g++
set(common "-Wall -Wextra -Wno-unused-parameter -fno-common")
set(common "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_RELEASE_INIT "${common} -O3 -march=native -funroll-loops -DNDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG_INIT "${common} -g -ggdb")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# icpc
set(common "-Wall -fno-common")
set(common "-Wall")
set(CMAKE_CXX_FLAGS_RELEASE_INIT "${common} -xHOST -O3")
set(CMAKE_CXX_FLAGS_DEBUG_INIT "${common} -g -O0")
elseif (CMAKE_CXX_COMPILER_ID MATCHES Clang)
# clang
set(common "-Wall -Wextra -Wno-unused-parameter")
set(common "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_RELEASE_INIT "${common} -O3 -march=native -funroll-loops -DNDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG_INIT "${common} -g -ggdb")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "PGI")
Expand Down

0 comments on commit 4202b7f

Please sign in to comment.