Skip to content

Commit 02d4cc0

Browse files
committed
release-build: disable precompiled headers
The Clang available in the Darling environment doesn't support PCH properly. It doesn't report PCH is not supported, but the build is plagued with garbage from the header files when doing so. Disabling PCH just makes the build more robust so we can disable it for every build.
1 parent d9ebc48 commit 02d4cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-release

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ build () {
456456
mkdir -pv "${target_build_dir}"
457457
mkdir -pv "${release_dir}"
458458

459-
local cmake_opts='-DBUILD_GAME_NATIVE_DLL=OFF -DBUILD_GAME_NATIVE_EXE=OFF'
459+
local cmake_opts='-DBUILD_GAME_NATIVE_DLL=OFF -DBUILD_GAME_NATIVE_EXE=OFF -DUSE_PRECOMPILED_HEADER=OFF'
460460
local cmake_cflags=''
461461

462462
if "${system_macos}"

0 commit comments

Comments
 (0)