Skip to content

Commit 2428c15

Browse files
committed
Revert "[modules] Enable cxxmodules for LLVM and libstdc++."
This reverts commit 86c95d9. We are not quite ready to do this. Our PR infrastructure gave green light while it shouldn't have.
1 parent e901a56 commit 2428c15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

interpreter/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ if(cxxmodules)
9393
# because the cxxmodules builds in llvm have different build dependency order.
9494
string(REPLACE "${ROOT_CXXMODULES_CXXFLAGS}" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
9595
string(REPLACE "${ROOT_CXXMODULES_CFLAGS}" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
96-
set (LLVM_ENABLE_MODULES ON CACHE BOOL "Override the default LLVM_ENABLE_MODULES option value." )
96+
if(libcxx)
97+
# FIXME: We cannot build LLVM/clang with modules on with libstdc++, yet.
98+
set (LLVM_ENABLE_MODULES ON CACHE BOOL "Override the default LLVM_ENABLE_MODULES option value." )
99+
endif(libcxx)
97100
endif(cxxmodules)
98101

99102
if(gcctoolchain)

0 commit comments

Comments
 (0)