Skip to content
Merged
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/xad/fix-install-pdb.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2a4821a..249275c 100644
index 58bb6ba..ee83a3c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -202,11 +202,13 @@ if(MSVC AND NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # clang-cl does not ge
@@ -210,11 +210,13 @@ elseif(MSVC AND NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # clang-cl does no
install(FILES "${xad_pdb_output_dir}/\${CMAKE_INSTALL_CONFIG_NAME}/$<$<CONFIG:Debug>:${xad_pdb_name_debug}>$<$<NOT:$<CONFIG:Debug>>:${xad_pdb_name}>.pdb"
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
CONFIGURATIONS Debug RelWithDebInfo
Expand Down
15 changes: 0 additions & 15 deletions ports/xad/fix-libcxx-21.patch

This file was deleted.

16 changes: 0 additions & 16 deletions ports/xad/fix-msvc-stl-145.patch

This file was deleted.

11 changes: 3 additions & 8 deletions ports/xad/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,12 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO auto-differentiation/xad
REF "v${VERSION}"
SHA512 e2e3a847d975dc9fcbd7be8277e93fb417d263aec566f2e46a809135460860caba966980823afb66d764bb0b2eb4d8d24765a8aadadb730aeb743a36b399fbde
SHA512 c1da2a795f7eb9b690b2b3bda072b7231b8672b8eec489a31324c42796d36cae791cb34a8119d1ca9d3b42cef6036b7c198538c9b3a80232f6eca1356abf1ce5
HEAD_REF main
PATCHES
fix-install-pdb.patch # no .pdb is produced with /Z7
fix-msvc-stl-145.patch # Visual Studio 2026 removed stdext::checked_array_iterator
fix-libcxx-21.patch # upstream 5d8a3b9
)

# The VERSION file in the v2.1.0 tag still carries the "-dev" suffix
file(WRITE "${SOURCE_PATH}/VERSION" "${VERSION}\n")
# Version.hpp.in refers to XAD_VERSION_* while the project defines xad_VERSION_*, which leaves the numeric macros empty
vcpkg_replace_string("${SOURCE_PATH}/src/XAD/Version.hpp.in" "@XAD_VERSION_" "@xad_VERSION_")

# Build the compiled part of the library for the baseline instruction set of the target.
# The headers are compiled with the consumer's own flags.
if(VCPKG_TARGET_ARCHITECTURE MATCHES "^(x86|x64)$")
Expand All @@ -36,6 +29,8 @@ vcpkg_cmake_configure(
-DXAD_WARNINGS_PARANOID=OFF
-DXAD_SIMD_OPTION=${XAD_SIMD_OPTION}
-DXAD_STATIC_MSVC_RUNTIME=${XAD_STATIC_MSVC_RUNTIME}
# Debug would default it to ON, which changes the tape layout; only the release headers are installed
-DXAD_TAPE_CHECKS=OFF
)

vcpkg_cmake_install()
Expand Down
2 changes: 1 addition & 1 deletion ports/xad/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xad",
"version": "2.1.0",
"version": "2.2.0",
"description": "Comprehensive C++ library for automatic differentiation: forward and adjoint modes, higher-order derivatives, checkpointing and vector modes.",
"homepage": "https://auto-differentiation.github.io",
"license": "AGPL-3.0-or-later",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -11329,7 +11329,7 @@
"port-version": 0
},
"xad": {
"baseline": "2.1.0",
"baseline": "2.2.0",
"port-version": 0
},
"xapian": {
Expand Down
5 changes: 5 additions & 0 deletions versions/x-/xad.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8e7fe39304fbd03851edc8b2c6d636fbc6f5860e",
"version": "2.2.0",
"port-version": 0
},
{
"git-tree": "085ae97be19e38126cce5f1ba298243189ec3f4f",
"version": "2.1.0",
Expand Down