Skip to content

Commit

Permalink
skip windows for versioned llvm-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Aug 9, 2024
1 parent 768e598 commit 8cde7cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
13 changes: 1 addition & 12 deletions recipe/install_llvm.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@ if "%PKG_NAME%" == "libllvm-c%PKG_VERSION:~0,2%" (
REM only libLLVM-C
move .\temp_prefix\bin\LLVM-C.dll %LIBRARY_BIN%
move .\temp_prefix\lib\LLVM-C.lib %LIBRARY_LIB%
) else if "%PKG_NAME%" == "llvm-tools-%PKG_VERSION:~0,2%" (
cmake --install ./build --prefix=./temp_prefix
if %ERRORLEVEL% neq 0 exit 1

mkdir %LIBRARY_PREFIX%\share
REM all the executables (not .dll's) in \bin with a version suffix
cd .\temp_prefix\bin
for %%f in (*.exe) do (
echo %%~nf
copy "%%~nf.exe" %LIBRARY_BIN%\%%~nf-%PKG_VERSION:~0,2%.exe
)
cd ..\..
) else if "%PKG_NAME%" == "llvm-tools" (
cmake --install ./build --prefix=./temp_prefix
if %ERRORLEVEL% neq 0 exit 1
Expand All @@ -29,6 +17,7 @@ if "%PKG_NAME%" == "libllvm-c%PKG_VERSION:~0,2%" (
REM all the executables (not .dll's) in \bin & everything in \share
move .\temp_prefix\bin\*.exe %LIBRARY_BIN%
move .\temp_prefix\share\* %LIBRARY_PREFIX%\share
del %LIBRARY_BIN%\llvm-config.exe
) else (
REM llvmdev: everything else
cmake --install .\build --prefix=%LIBRARY_PREFIX%
Expand Down
7 changes: 5 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ outputs:
script: install_llvm.bat # [win]
build:
activate_in_script: true
# On Windows there are no symlinks and copying will create a new package
# that is 300MB+
skip: true # [win]
requirements:
build:
- {{ stdlib('c') }}
Expand Down Expand Up @@ -198,13 +201,13 @@ outputs:
host:
- libcxx {{ cxx_compiler_version }} # [osx]
- {{ pin_subpackage("libllvm" + major_ver, exact=True) }}
- {{ pin_subpackage("llvm-tools-" ~ major_ver, exact=True) }}
- {{ pin_subpackage("llvm-tools-" ~ major_ver, exact=True) }} # [not win]
- libxml2
- zlib
- zstd
run:
- {{ pin_subpackage("libllvm" + major_ver, exact=True) }}
- {{ pin_subpackage("llvm-tools-" ~ major_ver, exact=True) }}
- {{ pin_subpackage("llvm-tools-" ~ major_ver, exact=True) }} # [not win]
run_constrained:
- llvm {{ version }}
- llvmdev {{ version }}
Expand Down

0 comments on commit 8cde7cc

Please sign in to comment.