2023-03-05 13:52:09 +00:00
|
|
|
@ECHO OFF
|
|
|
|
@rem LLVM installation path
|
|
|
|
IF "%dp0%"=="" (SET LLVM=".\bin") ELSE (SET LLVM=%dp0%\bin)
|
|
|
|
@rem SET LLVM="C:\Program Files\LLVM\bin\"
|
|
|
|
IF NOT EXIST "%LLVM%" (
|
|
|
|
ECHO LLVM not found at %LLVM%\bin
|
|
|
|
EXIT /b
|
|
|
|
)
|
|
|
|
|
|
|
|
PUSHD "%LLVM%"
|
|
|
|
|
|
|
|
@rem delete MSVC runtime library
|
|
|
|
DEL api-ms*.dll
|
|
|
|
DEL concrt140.dll
|
|
|
|
DEL msvcp140*.dll
|
|
|
|
DEL ucrtbase.dll
|
|
|
|
DEL vcruntime140*.dll
|
|
|
|
|
|
|
|
@rem make symbolic link
|
|
|
|
DEL clang++.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H clang++.exe clang-cl.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
DEL clang.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H clang.exe clang-cl.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
DEL clang-cpp.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H clang-cpp.exe clang-cl.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
DEL lld-link.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H lld-link.exe lld.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
DEL ld.lld.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H ld.lld.exe lld.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
DEL ld64.lld.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H ld64.lld.exe lld.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
DEL wasm-ld.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H wasm-ld.exe lld.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
DEL llvm-lib.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H llvm-lib.exe llvm-ar.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
DEL llvm-ranlib.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H llvm-ranlib.exe llvm-ar.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
@rem DEL libiomp5md.dll
|
2023-03-06 22:18:49 +00:00
|
|
|
@rem MKLINK /H libiomp5md.dll libomp.dll
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
POPD
|
|
|
|
|
|
|
|
@rem Python lldb
|
|
|
|
PUSHD lib\site-packages\lldb
|
|
|
|
|
|
|
|
IF EXIST _lldb.pyd (
|
|
|
|
DEL _lldb.pyd
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H _lldb.pyd ..\..\..\bin\liblldb.dll
|
2023-03-05 13:52:09 +00:00
|
|
|
)
|
|
|
|
@rem LLVM 14.0.0
|
|
|
|
IF EXIST _lldb.cp310-win_amd64.pyd (
|
|
|
|
DEL _lldb.cp310-win_amd64.pyd
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H _lldb.cp310-win_amd64.pyd ..\..\..\bin\liblldb.dll
|
2023-03-05 13:52:09 +00:00
|
|
|
)
|
|
|
|
IF EXIST _lldb.cp310-win32.pyd (
|
|
|
|
DEL _lldb.cp310-win32.pyd
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H _lldb.cp310-win32.pyd ..\..\..\bin\liblldb.dll
|
2023-03-05 13:52:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
DEL lldb-argdumper.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
MKLINK /H lldb-argdumper.exe ..\..\..\bin\lldb-argdumper.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
|
|
|
|
POPD
|
|
|
|
|
|
|
|
@rem LLVM 8.0 and later no longer contains this folder
|
|
|
|
@rem MKDIR msbuild-bin
|
|
|
|
@rem PUSHD msbuild-bin
|
|
|
|
@rem
|
|
|
|
@rem DEL cl.exe
|
2023-03-06 22:18:49 +00:00
|
|
|
@rem MKLINK /H cl.exe ..\bin\clang.exe
|
2023-03-05 13:52:09 +00:00
|
|
|
@rem POPD
|