8000
We read every piece of feedback, and take your input very seriously.
1 parent 4cc4302 commit fc60208Copy full SHA for fc60208
cmake/Codegen.cmake
@@ -414,8 +414,11 @@ if(INTERN_BUILD_ATEN_OPS)
414
endif(MSVC)
415
416
# Only parallelize the SortingKernel for now to avoid side effects
417
- if(${NAME} STREQUAL "native/cpu/SortingKernel.cpp" AND NOT MSVC AND USE_OMP)
418
- string(APPEND EXTRA_FLAGS " -D_GLIBCXX_PARALLEL")
+ if(${NAME} STREQUAL "native/cpu/SortingKernel.cpp" AND NOT MSVC AND USE_OPENMP)
+ set(EXTRA_FLAGS "${EXTRA_FLAGS} -D_GLIBCXX_PARALLEL")
419
+ if(USE_PRECOMPILED_HEADERS)
420
+ set_source_files_properties(${NEW_IMPL} PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
421
+ endif()
422
endif()
423
424
# Disable certain warnings for GCC-9.X