mirror of https://github.com/PCSX2/pcsx2.git
Use PCH with Clang (#3546)
This commit is contained in:
parent
18f5deede7
commit
1e1d455a4d
|
@ -117,3 +117,8 @@ set(UtilitiesFinalLibs
|
||||||
|
|
||||||
add_pcsx2_lib(${Output} "${UtilitiesFinalSources}" "${UtilitiesFinalLibs}" "${UtilitiesFinalFlags}")
|
add_pcsx2_lib(${Output} "${UtilitiesFinalSources}" "${UtilitiesFinalLibs}" "${UtilitiesFinalFlags}")
|
||||||
add_pcsx2_lib(${Output}_NO_TLS "${UtilitiesFinalSources}" "${UtilitiesFinalLibs}" "${UtilitiesFinalFlags} -DPCSX2_THREAD_LOCAL=0")
|
add_pcsx2_lib(${Output}_NO_TLS "${UtilitiesFinalSources}" "${UtilitiesFinalLibs}" "${UtilitiesFinalFlags} -DPCSX2_THREAD_LOCAL=0")
|
||||||
|
|
||||||
|
if(COMMAND target_precompile_headers)
|
||||||
|
target_precompile_headers(${Output} PRIVATE PrecompiledHeader.h)
|
||||||
|
target_precompile_headers(${Output}_NO_TLS PRIVATE PrecompiledHeader.h)
|
||||||
|
endif()
|
||||||
|
|
|
@ -73,3 +73,7 @@ set(x86emitterFinalLibs
|
||||||
)
|
)
|
||||||
|
|
||||||
add_pcsx2_lib(${Output} "${x86emitterFinalSources}" "${x86emitterFinalLibs}" "${x86emitterFinalFlags}")
|
add_pcsx2_lib(${Output} "${x86emitterFinalSources}" "${x86emitterFinalLibs}" "${x86emitterFinalFlags}")
|
||||||
|
|
||||||
|
if(COMMAND target_precompile_headers)
|
||||||
|
target_precompile_headers(${Output} PRIVATE PrecompiledHeader.h)
|
||||||
|
endif()
|
||||||
|
|
|
@ -714,12 +714,10 @@ endif()
|
||||||
|
|
||||||
add_pcsx2_executable(${Output} "${pcsx2FinalSources}" "${pcsx2FinalLibs}" "${pcsx2FinalFlags}")
|
add_pcsx2_executable(${Output} "${pcsx2FinalSources}" "${pcsx2FinalLibs}" "${pcsx2FinalFlags}")
|
||||||
|
|
||||||
if(NOT USE_CLANG)
|
|
||||||
if(COMMAND target_precompile_headers)
|
if(COMMAND target_precompile_headers)
|
||||||
message("Using precompiled headers.")
|
message("Using precompiled headers.")
|
||||||
target_precompile_headers(${Output} PRIVATE PrecompiledHeader.h)
|
target_precompile_headers(${Output} PRIVATE PrecompiledHeader.h)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# MacOS defaults to having a maximum protection of the __DATA segment of rw (non-executable)
|
# MacOS defaults to having a maximum protection of the __DATA segment of rw (non-executable)
|
||||||
|
|
Loading…
Reference in New Issue