X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=edksetup.bat;h=7b9377aaa5c2f6eeac2934e3e86d2356ecb7224a;hb=0a5d2b505cca2a6038a6bca1e299b09c73ae34a4;hp=024f57a4b739a2e7ce6c065ae56b0fbea3d9adae;hpb=670c903a68f214463f12c0c9619c162a0f342518;p=mirror_edk2.git diff --git a/edksetup.bat b/edksetup.bat index 024f57a4b7..7b9377aaa5 100755 --- a/edksetup.bat +++ b/edksetup.bat @@ -113,6 +113,18 @@ if not defined NASM_PREFIX ( @if not exist "C:\nasm\nasm.exe" echo Attempting to build modules that require NASM will fail. ) +:check_CLANGPDB +@REM In Windows, set CLANG_HOST_BIN=n to use nmake command +@set CLANG_HOST_BIN=n +if not defined CLANG_BIN ( + @echo. + @echo !!! WARNING !!! CLANG_BIN environment variable is not set + @if exist "C:\Program Files\LLVM\bin\clang.exe" ( + @set CLANG_BIN=C:\Program Files\LLVM\bin\ + @echo Found LLVM, setting CLANG_BIN environment variable to C:\Program Files\LLVM\bin\ + ) +) + :check_cygwin if defined CYGWIN_HOME ( if not exist "%CYGWIN_HOME%" (