Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
6157bb1
unpin run-export now that libclang is versioned
h-vetinari Mar 16, 2023
43572a0
fix libclang dependence of clang-tools
h-vetinari Mar 16, 2023
4f54ed0
remove lines for versioned clang-format that's skipped on windows
h-vetinari Mar 16, 2023
967f75a
remove obsolete cmake lower bound
h-vetinari Mar 16, 2023
8bba12f
bump build number
h-vetinari Mar 16, 2023
679e34b
clarify construction of CROSS_TOOLCHAIN_FLAGS_NATIVE
h-vetinari Mar 16, 2023
5f20708
add zlib in BUILD_PREFIX for cross-compilation; as set in ZLIB_ROOT
h-vetinari Mar 16, 2023
303f6d8
disable libxml2/zstd in NATIVE_FLAGS
h-vetinari Mar 16, 2023
00cb090
unequivocally switch on libxml2/zlib/zstd support
h-vetinari Mar 16, 2023
367a295
Set CMAKE_PREFIX_PATH
isuruf Mar 16, 2023
886788a
set libxml2/zlib/zstd as host deps consistently
h-vetinari Mar 17, 2023
9ebb88a
MNT: Re-rendered with conda-build 3.23.3, conda-smithy 3.23.0, and co…
h-vetinari Mar 17, 2023
47f3d2a
updated v16.0.0
regro-cf-autotick-bot Mar 18, 2023
7a9f5d1
MNT: Re-rendered with conda-build 3.23.3, conda-smithy 3.23.0, and co…
regro-cf-autotick-bot Mar 18, 2023
efccec5
Merge branch 'rc' into 16.0.0_hc44dc9
h-vetinari Mar 18, 2023
b6d6faf
remove rc-channels
h-vetinari Mar 18, 2023
ddd01d4
MNT: Re-rendered with conda-build 3.23.3, conda-smithy 3.23.0, and co…
h-vetinari Mar 18, 2023
f56d4b5
update comment about libxml2/zlib/zstd host deps
h-vetinari Mar 20, 2023
bb92340
reduce host deps for support libs, add ignore_run_exports_from where …
h-vetinari Mar 20, 2023
369f8db
also need ignore_run_exports_from for clang-format on win
h-vetinari Mar 20, 2023
c51e9b7
don't delete files for better post link checks
isuruf Mar 24, 2023
91ad7d6
fix deps
isuruf Mar 24, 2023
c0d0ecb
fix clang-format version
isuruf Mar 24, 2023
f7fcf2e
fix installation of clang-format
h-vetinari Mar 26, 2023
faf3d3f
don't attempt to use `files:` section for empty wrapper package
h-vetinari Mar 26, 2023
2667c1a
fix string concatenation in jinja
h-vetinari Mar 26, 2023
12feaad
Revert "fix installation of clang-format"
h-vetinari Mar 26, 2023
2cc62cb
Fix typo
isuruf Mar 26, 2023
562edad
update host-deps for clang-tools
h-vetinari Mar 27, 2023
bf14e78
update ignored run-exports for windows
h-vetinari Mar 27, 2023
5000414
Revert "update host-deps for clang-tools"
isuruf Mar 27, 2023
fb8d791
fix clang-tools clobbering
isuruf Mar 27, 2023
9c90825
Merge pull request #206 from regro-cf-autotick-bot/16.0.0_hc44dc9
isuruf Mar 27, 2023
d6d52f3
retrigger CI
h-vetinari Mar 27, 2023
c6ac4b1
Fix dependencies
isuruf Mar 30, 2023
f208f8b
fix libxml2
isuruf Mar 30, 2023
f926131
fix again
isuruf Mar 30, 2023
6520af6
Fix dependencies (#207)
github-actions[bot] Mar 30, 2023
90382ed
updated v16.0.1
regro-cf-autotick-bot Apr 5, 2023
1dd6d28
clangdev v16.0.1 (#208)
github-actions[bot] Apr 7, 2023
41caf57
silence robocopy
h-vetinari Apr 7, 2023
07728d8
silence robocopy (#209)
github-actions[bot] Apr 7, 2023
9a35f96
bump to 16.0.2
h-vetinari Apr 22, 2023
6ec6e52
MNT: Re-rendered with conda-build 3.24.0, conda-smithy 3.23.1, and co…
h-vetinari Apr 22, 2023
9b43894
clangdev 16.0.2 (#212)
github-actions[bot] Apr 22, 2023
ecc4d0c
updated v16.0.3
regro-cf-autotick-bot May 3, 2023
28ccb4f
Merge pull request #214 from regro-cf-autotick-bot/16.0.3_h40a322
h-vetinari May 4, 2023
dfac2cb
[ci skip] add abi_migration_branches
h-vetinari May 17, 2023
d09f0ad
Fix CONDA_BUILD_SYSROOT issue on -sysroot option
katietz May 17, 2023
f9f13b4
bump build-number
katietz May 17, 2023
4f80a96
add myself as maintainer
katietz May 17, 2023
cab766f
Merge pull request #216 from katietz/fix-clang-CONDA_BUILD_PREFIX
h-vetinari May 17, 2023
885d800
Rebuild for libxml2211
regro-cf-autotick-bot May 17, 2023
f8c211b
MNT: Re-rendered with conda-build 3.24.0, conda-smithy 3.23.1, and co…
regro-cf-autotick-bot May 17, 2023
9684b44
bump build number
h-vetinari May 17, 2023
b218ca4
[main] Rebuild for libxml2211 (#223)
github-actions[bot] May 18, 2023
5d56e11
updated v16.0.4
regro-cf-autotick-bot May 17, 2023
d2e99d4
Merge pull request #215 from regro-cf-autotick-bot/16.0.4_habaead
h-vetinari May 18, 2023
e6d125e
updated v16.0.5
regro-cf-autotick-bot Jun 2, 2023
d23a544
MNT: Re-rendered with conda-build 3.25.0, conda-smithy 3.23.1, and co…
regro-cf-autotick-bot Jun 2, 2023
de7616f
clangdev v16.0.5 (#226)
github-actions[bot] Jun 3, 2023
5f25648
ENH updated version to 16.0.6
Jun 15, 2023
a3627f4
clangdev v16.0.6 (#229)
github-actions[bot] Jun 16, 2023
b6faa26
Merge remote-tracking branch 'upstream/main' into rc
h-vetinari Jul 18, 2023
0cd990b
Revert "remove rc-channel sources & targets"
h-vetinari Jul 18, 2023
0704ff5
MNT: Re-rendered with conda-build 3.25.0, conda-smithy 3.24.0, and co…
h-vetinari Jul 19, 2023
3dcae7d
build from upstream main branch
h-vetinari Jul 19, 2023
c06df6b
fix jinja string concat and hard-coded version
h-vetinari Jul 19, 2023
8d205ff
rebase & fix patches
h-vetinari Jul 19, 2023
a1ba32e
fix compiler stack on osx vs. rc-label
h-vetinari Jul 19, 2023
2fed2ea
download archive of commit, instead of direct checkout
h-vetinari Jul 20, 2023
bc1242e
move skip to more obvious part of section
h-vetinari Jul 20, 2023
a7a9822
avoid redundant rename in install_clang_tools.sh
h-vetinari Jul 20, 2023
8703c7b
deal with library-extension for building from untagged commit
h-vetinari Jul 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion .ci_support/linux_64_variantdefault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '11'
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libclang_soversion:
- '13'
libxml2:
- '2.11'
target_platform:
- linux-64
variant:
- default
zlib:
- '1.2'
zstd:
- '1.5'
6 changes: 5 additions & 1 deletion .ci_support/linux_aarch64_variantdefault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '11'
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libclang_soversion:
- '13'
libxml2:
- '2.11'
target_platform:
- linux-aarch64
variant:
- default
zlib:
- '1.2'
zstd:
- '1.5'
6 changes: 5 additions & 1 deletion .ci_support/linux_ppc64le_variantdefault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '11'
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libclang_soversion:
- '13'
libxml2:
- '2.11'
target_platform:
- linux-ppc64le
variant:
- default
zlib:
- '1.2'
zstd:
- '1.5'
7 changes: 7 additions & 0 deletions .ci_support/migrations/libxml2211.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
__migrator:
build_number: 1
kind: version
migration_number: 1
libxml2:
- '2.11'
migrator_ts: 1684203491.9767957
8 changes: 7 additions & 1 deletion .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ channel_targets:
cxx_compiler:
- clang_bootstrap
cxx_compiler_version:
- '14'
- '15'
libclang_soversion:
- '13'
libxml2:
- '2.11'
macos_machine:
- x86_64-apple-darwin13.4.0
target_platform:
- osx-64
variant:
- default
zlib:
- '1.2'
zstd:
- '1.5'
8 changes: 7 additions & 1 deletion .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ channel_targets:
cxx_compiler:
- clang_bootstrap
cxx_compiler_version:
- '14'
- '15'
libclang_soversion:
- '13'
libxml2:
- '2.11'
macos_machine:
- arm64-apple-darwin20.0.0
target_platform:
- osx-arm64
variant:
- default
zlib:
- '1.2'
zstd:
- '1.5'
4 changes: 4 additions & 0 deletions .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ cxx_compiler:
- vs2019
libclang_soversion:
- '13'
libxml2:
- '2.11'
target_platform:
- win-64
variant:
- default
zlib:
- '1.2'
zstd:
- '1.5'
2 changes: 1 addition & 1 deletion .github/CODEOWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 14 additions & 7 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
provider:
win: azure
conda_forge_output_validation: true
bot:
abi_migration_branches:
- 15.x
- 14.x
build_platform:
linux_ppc64le: linux_64
linux_aarch64: linux_64
linux_ppc64le: linux_64
osx_arm64: osx_64
test_on_native_only: true
# label/llvm_rc would overrule our default compiler stack on osx due to
# strict channel priority; disable for rc-phase; don't commit to main!
channel_priority: flexible
conda_build:
pkg_format: '2'
conda_forge_output_validation: true
github:
branch_name: main
tooling_branch_name: main
conda_build:
pkg_format: '2'
provider:
win: azure
test_on_native_only: true
10 changes: 6 additions & 4 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
:: move clang-tools-extra to clang/tools/extra, see
:: https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/README.txt
mkdir llvm-project\clang\tools\extra
robocopy llvm-project\clang-tools-extra llvm-project\clang\tools\extra /E
robocopy llvm-project\clang-tools-extra llvm-project\clang\tools\extra /E >nul
:: do not check %ERRORLEVEL%! robocopy returns an exit code
:: of 1 if one or more files were successfully copied.

:: using subproject sources has been effectively broken in LLVM 14,
:: so we use the entire project, but make sure we don't pick up
:: anything in-tree other than clang & the shared cmake folder
robocopy llvm-project\clang .\clang /E
robocopy llvm-project\cmake .\cmake /E
robocopy llvm-project\clang .\clang /E >nul
robocopy llvm-project\cmake .\cmake /E >nul
del /f /q llvm-project
cd clang

Expand All @@ -34,7 +34,9 @@ cmake -G "Ninja" ^
-DCLANG_INCLUDE_DOCS=OFF ^
-DLLVM_INCLUDE_TESTS=OFF ^
-DLLVM_INCLUDE_DOCS=OFF ^
-DLLVM_ENABLE_LIBXML2=OFF ^
-DLLVM_ENABLE_LIBXML2=FORCE_ON ^
-DLLVM_ENABLE_ZLIB=FORCE_ON ^
-DLLVM_ENABLE_ZSTD=FORCE_ON ^
-DPython3_EXECUTABLE=%BUILD_PREFIX%\python ^
..
if %ERRORLEVEL% neq 0 exit 1
Expand Down
15 changes: 12 additions & 3 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ rm -rf llvm-project
cd clang

IFS='.' read -r -a PKG_VER_ARRAY <<< "${PKG_VERSION}"
VER_MAJOR=${PKG_VER_ARRAY[0]}
if [[ "${PKG_VERSION}" == *dev0 ]]; then
SOVER_EXT="${VER_MAJOR}git"
fi

sed -i.bak "s/libLTO.dylib/libLTO.${PKG_VER_ARRAY[0]}.dylib/g" lib/Driver/ToolChains/Darwin.cpp
sed -i.bak "s/libLTO.dylib/libLTO.${SOVER_EXT}.dylib/g" lib/Driver/ToolChains/Darwin.cpp

if [[ "$variant" == "hcc" ]]; then
CMAKE_ARGS="$CMAKE_ARGS -DKALMAR_BACKEND=HCC_BACKEND_AMDGPU -DHCC_VERSION_STRING=2.7-19365-24e69cd8-24e69cd8-24e69cd8"
Expand All @@ -25,8 +29,11 @@ if [[ "$variant" == "hcc" ]]; then
fi

if [[ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]]; then
NATIVE_FLAGS="-DCMAKE_C_COMPILER=$CC_FOR_BUILD;-DCMAKE_CXX_COMPILER=$CXX_FOR_BUILD;-DCMAKE_C_FLAGS=-O2;-DCMAKE_CXX_FLAGS=-O2"
NATIVE_FLAGS="${NATIVE_FLAGS};-DCMAKE_EXE_LINKER_FLAGS=;-DCMAKE_MODULE_LINKER_FLAGS=;-DCMAKE_SHARED_LINKER_FLAGS="
NATIVE_FLAGS="${NATIVE_FLAGS};-DCMAKE_STATIC_LINKER_FLAGS=;-DCMAKE_PREFIX_PATH=$BUILD_PREFIX"
CMAKE_ARGS="${CMAKE_ARGS} -DCROSS_TOOLCHAIN_FLAGS_NATIVE=${NATIVE_FLAGS}"
CMAKE_ARGS="${CMAKE_ARGS} -DLLVM_TOOLS_BINARY_DIR=$BUILD_PREFIX/bin -DNATIVE_LLVM_DIR=$BUILD_PREFIX/lib/cmake/llvm"
CMAKE_ARGS="${CMAKE_ARGS} -DCROSS_TOOLCHAIN_FLAGS_NATIVE=-DCMAKE_C_COMPILER=$CC_FOR_BUILD;-DCMAKE_CXX_COMPILER=$CXX_FOR_BUILD;-DCMAKE_C_FLAGS=-O2;-DCMAKE_CXX_FLAGS=-O2;-DCMAKE_EXE_LINKER_FLAGS=;-DCMAKE_MODULE_LINKER_FLAGS=;-DCMAKE_SHARED_LINKER_FLAGS=;-DCMAKE_STATIC_LINKER_FLAGS=;-DZLIB_ROOT=$BUILD_PREFIX"
else
rm -rf $BUILD_PREFIX/bin/llvm-tblgen
fi
Expand Down Expand Up @@ -54,7 +61,9 @@ cmake \
-DCLANG_INCLUDE_DOCS=OFF \
-DLLVM_INCLUDE_TESTS=OFF \
-DLLVM_INCLUDE_DOCS=OFF \
-DLLVM_ENABLE_LIBXML2=OFF \
-DLLVM_ENABLE_LIBXML2=FORCE_ON \
-DLLVM_ENABLE_ZLIB=FORCE_ON \
-DLLVM_ENABLE_ZSTD=FORCE_ON \
-DLLVM_ENABLE_RTTI=ON \
-DCMAKE_AR=$AR \
-DPython3_EXECUTABLE=${BUILD_PREFIX}/bin/python \
Expand Down
17 changes: 0 additions & 17 deletions recipe/install_clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,3 @@ set -ex

cd ${SRC_DIR}/clang/build
make install

cd "${PREFIX}"
rm -rf libexec share include

mv bin bin2
mkdir -p bin

maj_version="${PKG_VERSION%%.*}"
cp bin2/clang-${maj_version} bin/
rm -rf bin2

mv lib lib2
mkdir -p lib
mv lib2/libclang-cpp.* lib/
rm lib/libclang-cpp${SHLIB_EXT}
cp -Rf lib2/clang lib/
rm -rf lib2
9 changes: 0 additions & 9 deletions recipe/install_clang_format.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,3 @@
cd %SRC_DIR%\clang\build
ninja install
if %ERRORLEVEL% neq 0 exit 1

cd %LIBRARY_PREFIX%
rmdir /s /q lib libexec share include

move bin bin2
mkdir bin

move bin2\clang-format.exe bin\clang-format.exe
rmdir /s /q bin2
9 changes: 1 addition & 8 deletions recipe/install_clang_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,8 @@ set -ex
cd ${SRC_DIR}/clang/build
make install

cd $PREFIX
rm -rf lib/cmake include lib/lib*.a libexec share

mv bin bin2
mkdir -p bin

MAJOR_VERSION=$(echo ${PKG_VERSION} | cut -f1 -d".")
cp bin2/clang-format bin/clang-format-${MAJOR_VERSION}
rm -rf bin2
mv ${PREFIX}/bin/clang-format ${PREFIX}/bin/clang-format-${MAJOR_VERSION}

if [[ "$PKG_NAME" == "clang-format" ]]; then
ln -sf $PREFIX/bin/clang-format-${MAJOR_VERSION} $PREFIX/bin/clang-format
Expand Down
2 changes: 1 addition & 1 deletion recipe/install_clang_tools.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ ninja install
if %ERRORLEVEL% neq 0 exit 1

cd %LIBRARY_PREFIX%
rmdir /s /q lib include
rmdir /s /q include\clang include\clang-c include\clang-tidy lib
15 changes: 13 additions & 2 deletions recipe/install_clang_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,29 @@ set -ex
cd ${SRC_DIR}/clang/build
make install
cd $PREFIX
rm -rf lib/cmake include lib/lib*.a

# Remove stuff that should be in clangdev
rm -rf include/clang
rm -rf include/clang-c
rm -rf include/clang-tidy
rm -rf lib/cmake/clang/
rm -rf lib/lib*.a

MAJOR_VERSION=$(echo ${PKG_VERSION} | cut -f1 -d".")
for f in ${PREFIX}/bin/clang-*; do
if [[ "$(basename $f)" == clang-format-* ]]; then
# already got versioned in install_clang_format.sh
continue
elif [[ "$(basename $f)" == "clang-${MAJOR_VERSION}" ]]; then
# installation also creates a versioned clang, no need to re-version it
continue
fi
rm -f ${PREFIX}/bin/$(basename $f)-${MAJOR_VERSION}
mv $f ${PREFIX}/bin/$(basename $f)-${MAJOR_VERSION};
ln -s ${PREFIX}/bin/$(basename $f)-${MAJOR_VERSION} $f;
done

rm ${PREFIX}/bin/clang-${MAJOR_VERSION}-${MAJOR_VERSION}
# part of output "clang", not "clang-tools"
rm ${PREFIX}/bin/clang-${MAJOR_VERSION}
rm ${PREFIX}/bin/clang-cpp-${MAJOR_VERSION}
rm ${PREFIX}/bin/clang-cl-${MAJOR_VERSION}
21 changes: 0 additions & 21 deletions recipe/install_libclang.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,3 @@
cd %SRC_DIR%\clang\build
ninja install
if %ERRORLEVEL% neq 0 exit 1

cd %LIBRARY_PREFIX%
rmdir /s /q libexec share include

move bin bin2
mkdir bin
move lib lib2
mkdir lib

setlocal enabledelayedexpansion
if "%PKG_NAME%"=="libclang" (
REM for unversioned output, keep only import lib; no DLLs
move lib2\libclang.lib lib\libclang.lib
if %ERRORLEVEL% neq 0 exit 1
) else (
REM for versioned output, keep only versioned DLL; no import lib
move bin2\libclang-%libclang_soversion%.dll bin\libclang-%libclang_soversion%.dll
if %ERRORLEVEL% neq 0 exit 1
)
rmdir /s /q bin2
rmdir /s /q lib2
12 changes: 0 additions & 12 deletions recipe/install_libclang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,3 @@ set -ex

cd ${SRC_DIR}/clang/build
make install

cd $PREFIX
rm -rf libexec share bin include
mv lib lib2
mkdir lib

if [[ "$PKG_NAME" == "libclang" ]]; then
mv lib2/${PKG_NAME}${SHLIB_EXT} lib/
else
mv lib2/libclang.*.* lib/
fi
rm -rf lib2
Loading