From 58fb505496b0bae75a300f618cd6e7279a460e95 Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Mon, 29 May 2023 18:14:30 +0200 Subject: config.h: include FSTATAT_PATH_ACCEPTS_NULL This variable was introduced by d2f5906da4ae37a41ae257e5308d50e19689877b but not included in `config.h` before. As a result `#ifdef` would always fail. Moving the code is necessary to set the variable before `config.h` is created using `configure_file()` in CMakeLists.txt. --- runtime/POSIX/CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) (limited to 'runtime') diff --git a/runtime/POSIX/CMakeLists.txt b/runtime/POSIX/CMakeLists.txt index d8208d9b..02d06736 100644 --- a/runtime/POSIX/CMakeLists.txt +++ b/runtime/POSIX/CMakeLists.txt @@ -20,11 +20,6 @@ set(SRC_FILES stubs.c ) -try_compile (FSTATAT_PATH_ACCEPTS_NULL - ${CMAKE_BINARY_DIR} - ${PROJECT_SOURCE_DIR}/cmake/fstatat.c - ) - # Build it include("${CMAKE_SOURCE_DIR}/cmake/compile_bitcode_library.cmake") prefix_with_path("${SRC_FILES}" "${CMAKE_CURRENT_SOURCE_DIR}/" prefixed_files) -- cgit 1.4.1