diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-13 12:11:03 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-13 15:26:28 -0300 |
commit | f6ace9962d95eb12236083871154c1501f02c556 (patch) | |
tree | f9a1d5b6ca8eaa68114c98dcd92c6161bc15454d /CMakeLists.txt | |
parent | 3cac32e49c7fae9cf5963d35f3fd3052c061b2fa (diff) | |
download | rneovim-f6ace9962d95eb12236083871154c1501f02c556.tar.gz rneovim-f6ace9962d95eb12236083871154c1501f02c556.tar.bz2 rneovim-f6ace9962d95eb12236083871154c1501f02c556.zip |
Refactor travis build to use clang's sanitizers
- Valgrind configuration removed
- Fix errors reported by the undefined behavior sanitizer
- Travis will now run two build steps:
- A normal build of a shared library for unit testing(in parallel with gcc)
- A clang build with some sanitizers enabled for integration testing.
After these changes travis will run much faster, while providing valgrind-like
error detection.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c2a2b71915..c5b59ce403 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,12 +10,7 @@ set(NEOVIM_VERSION_PATCH 0) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -# If the C compiler is some GNU-alike, use the gnu99 standard and enable all warnings. -if(CMAKE_COMPILER_IS_GNUCC) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Wextra -pedantic -Wno-unused-parameter -std=gnu99") -elseif(CMAKE_C_COMPILER_ID MATCHES "Clang") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Wextra -pedantic -Wno-unused-parameter -std=gnu99") -endif(CMAKE_COMPILER_IS_GNUCC) +add_definitions(-Werror -Wall -Wextra -pedantic -Wno-unused-parameter -std=gnu99) add_definitions(-DHAVE_CONFIG_H) if(CMAKE_BUILD_TYPE MATCHES Debug) @@ -25,11 +20,6 @@ else() set(DEBUG 0) endif() -if(DEFINED ENV{VALGRIND_CHECK}) - message(STATUS "Defining EXITFREE for valgrind checks") - add_definitions(-DEXITFREE) -endif() - # Modules used by platform auto-detection include(CheckLibraryExists) |