Skip to content

Commit 9e2cfc8

Browse files
authored
Apply Clang workaround (#12)
2 parents ef4da2a + c2c3ed7 commit 9e2cfc8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ if(MSVC)
124124
INTERFACE
125125
# $<$<CONFIG:Debug,RelWithDebInfo>:/INCREMENTAL:NO> # TODO
126126
)
127-
128127
else()
128+
if(CMAKE_CXX_COMPILER_ID MATCHES Clang)
129+
target_compile_options(_iris_cxx_common INTERFACE -fno-builtin-std-forward_like)
130+
endif()
129131
target_compile_options(
130132
_iris_cxx_common
131133
INTERFACE

0 commit comments

Comments
 (0)