X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=edksetup.bat;h=7ad137bb3e9b073ce16e7de7f4aa0f12df7924be;hb=29cab43bb7912a12efa5a78dac15394aee866e4c;hp=024f57a4b739a2e7ce6c065ae56b0fbea3d9adae;hpb=670c903a68f214463f12c0c9619c162a0f342518;p=mirror_edk2.git diff --git a/edksetup.bat b/edksetup.bat index 024f57a4b7..7ad137bb3e 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%" (