Skip to content

Commit

Permalink
[gmp] remove embedded compiler info (#42443)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A authored Dec 2, 2024
1 parent 3968ae8 commit f6a91a8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions ports/gmp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ vcpkg_extract_source_archive(SOURCE_PATH
subdirs.patch
msvc_symbol.patch
arm64-coff.patch
remove_compiler_info.patch
)

vcpkg_list(SET OPTIONS)
Expand Down
15 changes: 15 additions & 0 deletions ports/gmp/remove_compiler_info.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/gmp-h.in b/gmp-h.in
index 648c933582..fa37296fe4 100644
--- a/gmp-h.in
+++ b/gmp-h.in
@@ -2330,10 +2330,6 @@ enum
GMP_ERROR_MPZ_OVERFLOW = 16
};

-/* Define CC and CFLAGS which were used to build this version of GMP */
-#define __GMP_CC "@CC@"
-#define __GMP_CFLAGS "@CFLAGS@"
-
/* Major version number is the value of __GNU_MP__ too, above. */
#define __GNU_MP_VERSION 6
#define __GNU_MP_VERSION_MINOR 3
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.3.0",
"port-version": 1,
"port-version": 2,
"description": "The GNU Multiple Precision Arithmetic Library",
"homepage": "https://gmplib.org",
"license": "LGPL-3.0-only OR GPL-2.0-only",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3210,7 +3210,7 @@
},
"gmp": {
"baseline": "6.3.0",
"port-version": 1
"port-version": 2
},
"gmsh": {
"baseline": "4.13.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": "d9ef9fbb509e23fcb49f567f3c383ca3fd37e2c0",
"version": "6.3.0",
"port-version": 2
},
{
"git-tree": "0634ea068717e4b97b9a9d767d70179b909657b6",
"version": "6.3.0",
Expand Down

0 comments on commit f6a91a8

Please sign in to comment.