aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2021-02-22 10:49:55 -0800
committerGitHub <noreply@github.com>2021-02-22 10:49:55 -0800
commit319b8f06ebbf8f524df78b4578fb0efeb6772c50 (patch)
tree5860b250fdf54d34439c4808983875f1f5aec5ae /ports
parenta037d826492039db9d58af47a1e1248037d15f40 (diff)
downloadvcpkg-319b8f06ebbf8f524df78b4578fb0efeb6772c50.tar.gz
vcpkg-319b8f06ebbf8f524df78b4578fb0efeb6772c50.zip
[llvm] Fix resource path when building tools (#16294)
* [llvm] Fix resource path when building tools * update version record
Diffstat (limited to 'ports')
-rw-r--r--ports/llvm/CONTROL1
-rw-r--r--ports/llvm/portfile.cmake4
2 files changed, 5 insertions, 0 deletions
diff --git a/ports/llvm/CONTROL b/ports/llvm/CONTROL
index 933f234d6..5782832bc 100644
--- a/ports/llvm/CONTROL
+++ b/ports/llvm/CONTROL
@@ -1,5 +1,6 @@
Source: llvm
Version: 11.0.0
+Port-Version: 1
Homepage: https://llvm.org/
Description: The LLVM Compiler Infrastructure
Supports: !uwp
diff --git a/ports/llvm/portfile.cmake b/ports/llvm/portfile.cmake
index ddb7db92c..8d7d7b9fe 100644
--- a/ports/llvm/portfile.cmake
+++ b/ports/llvm/portfile.cmake
@@ -119,6 +119,10 @@ if("polly" IN_LIST FEATURES)
list(APPEND LLVM_ENABLE_PROJECTS "polly")
endif()
+if("tools" IN_LIST FEATURES)
+ list(APPEND FEATURE_OPTIONS -DCLANG_RESOURCE_DIR=../../lib/clang/11.0.0)
+endif()
+
set(known_llvm_targets
AArch64
AMDGPU