aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-10-09 13:55:08 -0400
committerJames McCoy <jamessan@jamessan.com>2016-10-09 21:12:45 -0400
commitcb03517fd36399d65a773b85ac7c0a5bf73ca8d6 (patch)
tree93d85780528fbddad4c6eb6ae8212aace9828d92
parent44084310862656788a39b53766b1d6fe18995242 (diff)
downloadrneovim-cb03517fd36399d65a773b85ac7c0a5bf73ca8d6.tar.gz
rneovim-cb03517fd36399d65a773b85ac7c0a5bf73ca8d6.tar.bz2
rneovim-cb03517fd36399d65a773b85ac7c0a5bf73ca8d6.zip
ci: Force unsigned char usage for the 32bit build
Since C leaves whether char is signed or unsigned up to the implementer, there are different defaults on different architectures. Forcing unsigned char for one of our CI builds should help catch these issues moving forward.
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0a6a9accea..beca0c1d5d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -253,6 +253,10 @@ option(
if(TRAVIS_CI_BUILD)
message(STATUS "Travis CI build enabled.")
add_definitions(-Werror)
+ if(DEFINED ENV{BUILD_32BIT})
+ # Get some test coverage for unsigned char
+ add_definitions(-funsigned-char)
+ endif()
endif()
if(CMAKE_BUILD_TYPE MATCHES Debug)