mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-27 02:10:15 +00:00
Add /Zm flag as a workaround for VS2013 build (#2023)
This commit is contained in:
parent
6647884a13
commit
fb996dce75
@ -195,8 +195,8 @@ if(MSVC)
|
||||
else()
|
||||
set(PCH_NAME "pch.pch")
|
||||
endif()
|
||||
set_source_files_properties(${SPIRV_TOOLS_OPT_SOURCES} PROPERTIES COMPILE_FLAGS "/Yupch.h /FIpch.h /Fp${PCH_NAME}" OBJECT_DEPENDS "${PCH_NAME}")
|
||||
set_source_files_properties(pch.cpp PROPERTIES COMPILE_FLAGS "/Ycpch.h /Fp${PCH_NAME}" OBJECT_OUTPUTS "${PCH_NAME}")
|
||||
set_source_files_properties(${SPIRV_TOOLS_OPT_SOURCES} PROPERTIES COMPILE_FLAGS "/Yupch.h /FIpch.h /Fp${PCH_NAME} /Zm300" OBJECT_DEPENDS "${PCH_NAME}")
|
||||
set_source_files_properties(pch.cpp PROPERTIES COMPILE_FLAGS "/Ycpch.h /Fp${PCH_NAME} /Zm300" OBJECT_OUTPUTS "${PCH_NAME}")
|
||||
list(APPEND SPIRV_TOOLS_OPT_SOURCES "pch.cpp")
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user