Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions ports/gmp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ if(VCPKG_DETECTED_CMAKE_C_COMPILER_ID STREQUAL "MSVC")
set(disable_assembly ON)
endif()
if(NOT disable_assembly)
vcpkg_find_acquire_program(CLANG)
set(ccas "${CLANG}")
vcpkg_find_acquire_program(VSCLANG)
set(ccas "${VSCLANG}")
endif()
elseif(VCPKG_TARGET_IS_MINGW AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
# not exporting asm functions
Expand Down
2 changes: 1 addition & 1 deletion ports/gmp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gmp",
"version": "6.2.1",
"port-version": 21,
"port-version": 22,
"description": "The GNU Multiple Precision Arithmetic Library",
"homepage": "https://gmplib.org",
"license": "LGPL-3.0-only OR GPL-2.0-only",
Expand Down
4 changes: 2 additions & 2 deletions ports/nettle/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ if(VCPKG_DETECTED_CMAKE_C_COMPILER_ID STREQUAL "MSVC")
set(disable_assembly ON)
endif()
if(NOT disable_assembly)
vcpkg_find_acquire_program(CLANG)
set(ccas "${CLANG}")
vcpkg_find_acquire_program(VSCLANG)
set(ccas "${VSCLANG}")
endif()
else()
set(ccas "${VCPKG_DETECTED_CMAKE_C_COMPILER}")
Expand Down
2 changes: 1 addition & 1 deletion ports/nettle/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nettle",
"version": "3.8.1",
"port-version": 1,
"port-version": 2,
"description": "Nettle is a low-level cryptographic library that is designed to fit easily in more or less any context: In crypto toolkits for object-oriented languages (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.",
"homepage": "https://git.lysator.liu.se/nettle/nettle",
"license": null,
Expand Down
19 changes: 19 additions & 0 deletions scripts/cmake/vcpkg_find_acquire_program(VSCLANG).cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
if(NOT CMAKE_HOST_WIN32)
message(FATAL_ERROR "Visual Studio is only supported on Windows hosts.")
endif()

set(program_name "clang")
set(paths_to_search
# LLVM in Visual Studio
"$ENV{VCINSTALLDIR}/Tools/Llvm/x64/bin"
"$ENV{VCINSTALLDIR}/Tools/Llvm/bin"
)
find_program(VSCLANG
NAMES clang
PATHS ${paths_to_search}
NO_DEFAULT_PATH
)
if(NOT VSCLANG)
list(JOIN paths_to_search "\n " paths)
message(FATAL_ERROR "Failed to find Visual Studio's clang in:\n ${paths}\nOpen the Visual Studio Installer and choose \"C++ Clang tools for Windows\" under \"Desktop development with C++\" optional components.")
endif()
12 changes: 8 additions & 4 deletions scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)

# For each vcpkg_find_acquire_program(NAME).cmake script,
# there must be a literal call to vcpkg_find_acquire_program(NAME).cmake
# Using a wrapper to collect the names of the variables to be checked.
set(variables "")
macro(vcpkg_find_acquire_program program)
list(APPEND variables "${program}")
message(STATUS "Checking ${program}...")
_vcpkg_find_acquire_program(${ARGV})
endmacro()

set(variables BAZEL BISON FLEX GIT GN NINJA PERL PKGCONFIG PYTHON3 YASM)
vcpkg_find_acquire_program(BAZEL)
vcpkg_find_acquire_program(BISON)
vcpkg_find_acquire_program(FLEX)
Expand All @@ -17,17 +23,14 @@ vcpkg_find_acquire_program(YASM)

if(NOT VCPKG_TARGET_IS_OSX)
# System python too old (3.9; meson needs 3.10)
list(APPEND variables MESON)
vcpkg_find_acquire_program(MESON)
endif()

if(VCPKG_HOST_IS_LINUX)
list(APPEND variables PATCHELF)
vcpkg_find_acquire_program(PATCHELF)
endif()

if(VCPKG_HOST_IS_WINDOWS)
list(APPEND variables 7Z ARIA2 CLANG DARK DOXYGEN GASPREPROCESSOR GO GPERF JOM NASM NUGET PYTHON2 RUBY SCONS SWIG)
vcpkg_find_acquire_program(7Z)
vcpkg_find_acquire_program(ARIA2)
vcpkg_find_acquire_program(CLANG)
Expand All @@ -43,6 +46,7 @@ if(VCPKG_HOST_IS_WINDOWS)
vcpkg_find_acquire_program(RUBY)
vcpkg_find_acquire_program(SCONS)
vcpkg_find_acquire_program(SWIG)
vcpkg_find_acquire_program(VSCLANG)
endif()

set(missing "")
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3030,7 +3030,7 @@
},
"gmp": {
"baseline": "6.2.1",
"port-version": 21
"port-version": 22
},
"gmsh": {
"baseline": "4.11.1",
Expand Down Expand Up @@ -5910,7 +5910,7 @@
},
"nettle": {
"baseline": "3.8.1",
"port-version": 1
"port-version": 2
},
"networkdirect-sdk": {
"baseline": "2.0.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/gmp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6d8b63a28eb86fdb8e2af0201ead9146c6656bdb",
"version": "6.2.1",
"port-version": 22
},
{
"git-tree": "726604ff590362102d805e16508ae20730583101",
"version": "6.2.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/n-/nettle.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d1f719255302bc915594ec977a28f57758b742f4",
"version": "3.8.1",
"port-version": 2
},
{
"git-tree": "7734b67cb656bf12488ea137779b56d8865bbb02",
"version": "3.8.1",
Expand Down