Skip to content

Commit 21cb165

Browse files
committed
Exclude Util.cpp from precompiled headers
1 parent 72a5a15 commit 21cb165

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,11 @@ endif ()
661661
# core Halide headers.
662662
target_precompile_headers(Halide PRIVATE Halide_pch.h)
663663

664+
# Util.cpp implements run_with_large_stack(), which is sensitive to CMake's
665+
# forced-include PCH path and produces crashing helper binaries when compiled
666+
# with PCH enabled.
667+
set_source_files_properties(Util.cpp PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
668+
664669
# LLVM sources live in their own object library so they can have a separate PCH.
665670
add_library(Halide_LLVM_srcs OBJECT
666671
CodeGen_ARM.cpp

0 commit comments

Comments
 (0)