Skip to content

Commit e7fa6bb

Browse files
committed
Exclude Util.cpp from precompiled headers
1 parent 7db9c7b commit e7fa6bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,11 @@ endif ()
654654
# core Halide headers.
655655
target_precompile_headers(Halide PRIVATE Halide_pch.h)
656656

657+
# Util.cpp implements run_with_large_stack(), which is sensitive to CMake's
658+
# forced-include PCH path and produces crashing helper binaries when compiled
659+
# with PCH enabled.
660+
set_source_files_properties(Util.cpp PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
661+
657662
# LLVM sources live in their own object library so they can have a separate PCH.
658663
add_library(Halide_LLVM_srcs OBJECT
659664
CodeGen_ARM.cpp

0 commit comments

Comments
 (0)