Skip to content

Commit 7a16942

Browse files
committed
Debugging cmake Ruby compiler flags fix for CI/CD
1 parent 5f16ca1 commit 7a16942

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/loaders/rb_loader/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,14 @@ target_compile_options(${target}
192192
# '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
193193

194194
include(Portability)
195+
message("${PROJECT_OS_FAMILY}")
195196
if("${PROJECT_OS_FAMILY}" STREQUAL "macos" )
196-
if("${CMAKE_C_COMPILER_ID}" STREQUAL "AppleClang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
197+
message("PROJECT FAMILY IS MACOS")
198+
if("${CMAKE_C_COMPILER_ID}" STREQUAL "AppleClang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "AppleClang*" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
199+
message("${CMAKE_C_COMPILER_ID} inside if clause")
197200
target_compile_options(${target} PRIVATE "-fdeclspec")
198201
endif()
202+
message("After if for Ruby compiler bug fix on MacOSX")
199203
endif()
200204

201205

0 commit comments

Comments
 (0)