diff --git a/ports/llvm/portfile.cmake b/ports/llvm/portfile.cmake index 0896fa6ba332c3..b04d7e44c6cd79 100644 --- a/ports/llvm/portfile.cmake +++ b/ports/llvm/portfile.cmake @@ -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 diff --git a/ports/llvm/vcpkg.json b/ports/llvm/vcpkg.json index 383aad641ffe79..918f1cd7cad37a 100644 --- a/ports/llvm/vcpkg.json +++ b/ports/llvm/vcpkg.json @@ -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", diff --git a/versions/baseline.json b/versions/baseline.json index a82b85b07970da..af0c0f094854b8 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4266,7 +4266,7 @@ }, "llvm": { "baseline": "14.0.3", - "port-version": 0 + "port-version": 1 }, "lmdb": { "baseline": "0.9.29", diff --git a/versions/l-/llvm.json b/versions/l-/llvm.json index a2af523ae03617..18b97acd0d6990 100644 --- a/versions/l-/llvm.json +++ b/versions/l-/llvm.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "741b89d3872cb0152d5c295ce075b8d751381f51", + "version": "14.0.3", + "port-version": 1 + }, { "git-tree": "751084451d4807176af868b2edab17131c2e4a09", "version": "14.0.3",