Skip to content

Commit 64597af

Browse files
committed
Hotfix for 1.0.28: Fix build of API layers on Windows on ARM: need bigobj
1 parent b1ef8f9 commit 64597af

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/api_layers/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ else()
3737
set(LAYER_MANIFEST_PREFIX)
3838
endif()
3939

40+
# Windows needs bigobj support since we have generated code.
41+
if(MSVC)
42+
add_compile_options("/bigobj")
43+
elseif(WIN32 AND CMAKE_CXX_COMPILER_ID MATCHES "^Clang|GNU$")
44+
add_compile_options("-Wa,-mbig-obj")
45+
endif()
46+
4047
# Basics for api_dump API Layer
4148

4249
gen_xr_layer_json(

0 commit comments

Comments
 (0)