Skip to content

Commit

Permalink
[llvm] no absolute paths (#24878)
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort authored May 24, 2022
1 parent 6a66e95 commit c40e73f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ports/llvm/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
)
endif()

if("mlir" IN_LIST FEATURES)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/mlir/MLIRConfig.cmake" "set(MLIR_MAIN_SRC_DIR \"${SOURCE_PATH}/mlir\")" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/mlir/MLIRConfig.cmake" "${CURRENT_BUILDTREES_DIR}" "\${MLIR_INCLUDE_DIRS}")
endif()

# LLVM still generates a few DLLs in the static build:
# * LLVM-C.dll
# * libclang.dll
Expand Down
1 change: 1 addition & 0 deletions ports/llvm/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "llvm",
"version": "14.0.3",
"port-version": 1,
"description": "The LLVM Compiler Infrastructure.",
"homepage": "https://llvm.org",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4266,7 +4266,7 @@
},
"llvm": {
"baseline": "14.0.3",
"port-version": 0
"port-version": 1
},
"lmdb": {
"baseline": "0.9.29",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/llvm.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "741b89d3872cb0152d5c295ce075b8d751381f51",
"version": "14.0.3",
"port-version": 1
},
{
"git-tree": "751084451d4807176af868b2edab17131c2e4a09",
"version": "14.0.3",
Expand Down

0 comments on commit c40e73f

Please sign in to comment.