Skip to content

Commit 5d807d1

Browse files
quaglacopybara-github
authored andcommitted
Check mjs_getName return value in XML parser. Fixes #2898.
PiperOrigin-RevId: 819351410 Change-Id: I2d132e786606aed43ab9bfbc6f188fb24a4413fe
1 parent 2b62920 commit 5d807d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/MujocoLinkOptions.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ include(CheckCSourceCompiles)
1818
# linker.
1919
function(get_mujoco_extra_link_options OUTPUT_VAR)
2020
if(MSVC)
21-
set(EXTRA_LINK_OPTIONS /OPT:REF /OPT:ICF=5)
21+
set(EXTRA_LINK_OPTIONS /OPT:REF /OPT:ICF=5 /STACK:16777216)
2222
else()
2323
set(EXTRA_LINK_OPTIONS)
2424

2525
if(WIN32)
26+
set(EXTRA_LINK_OPTIONS ${EXTRA_LINK_OPTIONS} -Wl,/STACK:16777216)
2627
set(CMAKE_REQUIRED_FLAGS "-fuse-ld=lld-link")
2728
check_c_source_compiles("int main() {}" SUPPORTS_LLD)
2829
if(SUPPORTS_LLD)

0 commit comments

Comments
 (0)