https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a5a6101ca03514c292dc1d2c0cc8d9145c223627

commit a5a6101ca03514c292dc1d2c0cc8d9145c223627
Author:     Victor Perevertkin <[email protected]>
AuthorDate: Fri May 27 01:48:52 2022 +0300
Commit:     Victor Perevertkin <[email protected]>
CommitDate: Fri May 27 01:48:52 2022 +0300

    [CMAKE] Fix buildbot builders
---
 CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2b05726a694..63353f0c58b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,7 +76,8 @@ add_definitions(
 
 # There doesn't seem to be a standard for __FILE__ being relative or absolute, 
so detect it at runtime.
 file(RELATIVE_PATH _PATH_PREFIX ${REACTOS_BINARY_DIR} ${REACTOS_SOURCE_DIR})
-if (NOT MSVC AND (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID 
STREQUAL "Clang"))
+if (NOT MSVC AND ((CMAKE_C_COMPILER_ID STREQUAL "GNU") AND 
(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "8.0.0")
+               OR (CMAKE_C_COMPILER_ID STREQUAL "Clang") AND 
(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "10.0.0")))
     # Thankfully, GCC has this
     add_compile_options(-ffile-prefix-map=${REACTOS_SOURCE_DIR}=)
     add_compile_options(-ffile-prefix-map=${_PATH_PREFIX}=)

Reply via email to