aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-07 14:43:45 +0100
committerGitHub <noreply@github.com>2023-02-07 14:43:45 +0100
commitc1d76363ac72a7a17b657eaa99df4533d169a40b (patch)
tree305ce7951d68c8a8d30c42dd0b2fc440b68860ca /src
parent8fbe75b3dda7ab3b9e6df0d5406539bde4c80887 (diff)
downloadrneovim-c1d76363ac72a7a17b657eaa99df4533d169a40b.tar.gz
rneovim-c1d76363ac72a7a17b657eaa99df4533d169a40b.tar.bz2
rneovim-c1d76363ac72a7a17b657eaa99df4533d169a40b.zip
ci: simplify how environment variables are used (#22067)
Having a clear separation between when we manipulate variables and when we export them to GITHUB_ENV makes it less error-prone.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nvim/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index fd34a30619..e4bbdda0c3 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -166,13 +166,14 @@ if(CI_BUILD)
target_compile_options(main_lib INTERFACE -WX)
else()
target_compile_options(main_lib INTERFACE -Werror)
- if(DEFINED ENV{BUILD_UCHAR})
- # Get some test coverage for unsigned char
- target_compile_options(main_lib INTERFACE -funsigned-char)
- endif()
endif()
endif()
+option(UNSIGNED_CHAR "Set char to be unsigned" OFF)
+if(UNSIGNED_CHAR)
+ target_compile_options(main_lib INTERFACE -funsigned-char)
+endif()
+
list(APPEND CMAKE_REQUIRED_INCLUDES "${MSGPACK_INCLUDE_DIRS}")
check_c_source_compiles("
#include <msgpack.h>