Skip to content

Commit

Permalink
Quote clang filename in Windows .bat wrappers
Browse files Browse the repository at this point in the history
This broke the Windows SDK if installed to a path containing spaces.
Fixes #178
  • Loading branch information
mysterymath committed Sep 2, 2023
1 parent 13016c8 commit 0eb1696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/install-clang-batch-file.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
function(install_clang_batch_file bindir platform suffix)
set(file mos-${platform}-${suffix}.bat)
message(STATUS "Creating redirecting batch file ${file}")
file(WRITE ${bindir}/${file} "@ECHO OFF\n%~dp0\\mos-${suffix} --config mos-${platform}.cfg %*\n")
file(WRITE ${bindir}/${file} "@ECHO OFF\n\"%~dp0\\mos-${suffix}\" --config mos-${platform}.cfg %*\n")
endfunction()

0 comments on commit 0eb1696

Please sign in to comment.