Skip to content

Commit

Permalink
Always set CLANG_RESOURCE_DIR_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Feb 26, 2025
1 parent 88116bb commit f7c775f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipe/build_root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ else
Clang_DIR_BUILD=${BUILD_PREFIX}
fi

clang_version_split=(${clang_version//./ })
CMAKE_PLATFORM_FLAGS+=("-DCLANG_RESOURCE_DIR_VERSION=${clang_version_split[0]}")
if [[ "${target_platform}" == linux* ]]; then
rel=$(realpath --relative-to="$CONDA_PREFIX" "$CONDA_BUILD_SYSROOT")
if [[ $rel == .* ]]; then
Expand All @@ -81,8 +83,6 @@ if [[ "${target_platform}" == linux* ]]; then
echo "CXXFLAGS is now '${CXXFLAGS}'"
else
CMAKE_PLATFORM_FLAGS+=("-DBLA_PREFER_PKGCONFIG=ON")
clang_version_split=(${clang_version//./ })
CMAKE_PLATFORM_FLAGS+=("-DCLANG_RESOURCE_DIR_VERSION=${clang_version_split[0]}")

# HACK: Hack the macOS SDK to make rootcling find the correct ncurses
if [[ -f "$CONDA_BUILD_SYSROOT/usr/include/module.modulemap.bak" ]]; then
Expand Down

0 comments on commit f7c775f

Please sign in to comment.