Skip to content

Commit

Permalink
Comply review requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
feisuzhu committed Nov 30, 2022
1 parent aff3271 commit a8590b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ if (TI_WITH_BACKTRACE)
add_subdirectory(external/backward_cpp)
endif()

include(cmake/Distributed.cmake)
if (TI_DISTRIBUTED_COMPILE)
include(cmake/Distributed.cmake)
endif()

include(cmake/TaichiCXXFlags.cmake)
include(cmake/TaichiCore.cmake)

Expand Down
8 changes: 2 additions & 6 deletions cmake/Distributed.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
if (DISTRIBUTED_COMPILE)

if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message(FATAL_ERROR "Distruted compiling only supports Clang for now." )
message(FATAL_ERROR "Distributed compiling only supports Clang for now." )
endif()

message("Enabling distributed compiling quirks")
message(WARNING "Enabling distributed compiling support, this is experimental and only tested in Taichi's internal CI/CD system, use at your own risk.")

execute_process(
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
Expand All @@ -23,5 +21,3 @@ add_compile_options(-Wno-parentheses-equality)
# taichi/python/export_lang.cpp:1241
# MAKE_SPARSE_MATRIX(32, ColMajor, f)
add_compile_options(-Wno-self-assign-overloaded)

endif() # DISTRIBUTED_COMPILE

0 comments on commit a8590b1

Please sign in to comment.