Building cmake rule fails because provided EMSDK_PYTHON (introduced in 5464280) is relative to execution_root,
but cmake can implicitly change current directory in builds (especially during try_compile steps to CMakeFiles/CMakeScratch).
So in usual cmake builds there are failed:
- "Detecting C compiler ABI info" step
- "Check for working C compiler" step
Full log: emdsk-5-cmake-bug.log
Important part:
/private/var/tmp/_bazel/1b4150e0bd5fb01fec2f73043048bd2e/execroot/_main/external/emsdk+/emscripten_toolchain/emcc.sh: line 5: exec: /private/var/tmp/_bazel/1b4150e0bd5fb01fec2f73043048bd2e/execroot/_main/bazel-out/wasm-dbg-wasm-ST-87cf4af9f873/bin/external/sdl3+/sdl3_cmake_base.build_tmpdir/CMakeFiles/CMakeScratch/TryCompile-ZttFNR/external/rules_python++python+python_3_11_aarch64-apple-darwin/bin/python3: cannot execute: No such file or directory
Because: EMSDK_PYTHON=external/rules_python++python+python_3_11_aarch64-apple-darwin/bin/python3
Building cmake rule fails because provided EMSDK_PYTHON (introduced in 5464280) is relative to execution_root,
but cmake can implicitly change current directory in builds (especially during try_compile steps to CMakeFiles/CMakeScratch).
So in usual cmake builds there are failed:
Full log: emdsk-5-cmake-bug.log
Important part:
Because:
EMSDK_PYTHON=external/rules_python++python+python_3_11_aarch64-apple-darwin/bin/python3