Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 516013c

Browse files
authored
pch on as default for msvc and disabled for appimages
1 parent c46686d commit 516013c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.ci/linux.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
if [ "$TARGET" = "appimage" ]; then
44
# Compile the AppImage we distribute with Clang.
5-
export EXTRA_CMAKE_FLAGS=(-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_LINKER=/etc/bin/ld.lld)
5+
export EXTRA_CMAKE_FLAGS=(-DCITRA_USE_PRECOMPILED_HEADERS=OFF -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_LINKER=/etc/bin/ld.lld)
66
else
77
# For the linux-fresh verification target, verify compilation without PCH as well.
88
export EXTRA_CMAKE_FLAGS=(-DCITRA_USE_PRECOMPILED_HEADERS=OFF)

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
8888
# Compile options
8989
CMAKE_DEPENDENT_OPTION(COMPILE_WITH_DWARF "Add DWARF debugging information" ${IS_DEBUG_BUILD} "MINGW" OFF)
9090
option(ENABLE_LTO "Enable link time optimization" ${DEFAULT_ENABLE_LTO})
91-
option(CITRA_USE_PRECOMPILED_HEADERS "Use precompiled headers" OFF)
91+
option(CITRA_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON)
9292
option(CITRA_WARNINGS_AS_ERRORS "Enable warnings as errors" ON)
9393

9494
include(CitraHandleSystemLibs)

0 commit comments

Comments
 (0)