Skip to content

Fix spaced paths in macOS guest builds - #6

Merged
adrbn merged 1 commit into
adrbn:mac-native-hostfrom
tronLives111:patch-1
Nov 23, 2026
Merged

adrbn merged 1 commit into
adrbn:mac-native-hostfrom
tronLives111:patch-1

Conversation

@tronLives111

Copy link
Copy Markdown

Summary

  • Quote the clang-cl executable and SDK paths and forward the compiler flags as separate arguments. This fixes optional Windows guest builds when the LLVM directory or XWIN_DIR contains spaces.
  • Preserve /MD for the regular guests, /MT for the static exception probe, and the existing CRT probe user32.lib link.

Verification

  • Reproduced the SDK argument split with a compiler shim. The corrected script passed all eight guest compiler argument checks, including the /MT path.
  • sh -n passed. The native host built on Apple M1 without an SDK, and the Rosetta probe handled all 21 traps. Actual Windows SDK linking was stubbed in the argument test. No game files or GPU required.

Coordination claim. AI-assisted.

Pass clang-cl options as separate arguments so LLVM and SDK paths containing spaces stay intact. Preserve the /MT exception probe and the existing user32 link flag.

The local patch passed shell syntax checks and a compiler-shim test that checked all eight guest compiler calls. AI-assisted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants