mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Improve support for Windows cross compilation on targets with case sensitive file systems.
This commit is contained in:
@@ -234,10 +234,13 @@ lib = list((OUTPUT / "VC/Tools/MSVC/").glob("*/lib"))[0]
|
||||
|
||||
SDK_OUTPUT.mkdir(exist_ok=True)
|
||||
|
||||
def copy(src, dst):
|
||||
shutil.copy(src, dst.lower())
|
||||
|
||||
for arch in archs:
|
||||
out_dir = SDK_OUTPUT / arch
|
||||
shutil.copytree(ucrt / arch, out_dir, dirs_exist_ok=True)
|
||||
shutil.copytree(um / arch, out_dir, dirs_exist_ok=True)
|
||||
shutil.copytree(lib / arch, out_dir, dirs_exist_ok=True)
|
||||
shutil.copytree(ucrt / arch, out_dir, copy_function=copy, dirs_exist_ok=True)
|
||||
shutil.copytree(um / arch, out_dir, copy_function=copy, dirs_exist_ok=True)
|
||||
shutil.copytree(lib / arch, out_dir, copy_function=copy, dirs_exist_ok=True)
|
||||
|
||||
print("Congratulations! The 'msvc_sdk' directory was successfully generated.")
|
||||
|
||||
Reference in New Issue
Block a user