Skip to content

Commit

Permalink
[fontconfig] fix preprocessor for clang-cl (#26052)
Browse files Browse the repository at this point in the history
* fix fontconfig for clang-cl

* v db
  • Loading branch information
Neumann-A committed Aug 1, 2022
1 parent c9ab969 commit 55209aa
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
13 changes: 13 additions & 0 deletions ports/fontconfig/fix-preprocessor-clang-cl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/meson.build b/src/meson.build
index 9a6ba2021..5d04f7360 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -33,7 +33,7 @@ fc_sources = [
cpp = cc.cmd_array()
if cc.get_id() == 'gcc'
cpp += ['-E', '-P']
-elif cc.get_id() == 'msvc'
+elif cc.get_argument_syntax() == 'msvc'
cpp += ['/EP']
elif cc.get_id() == 'clang'
cpp += ['-E', '-P']
1 change: 1 addition & 0 deletions ports/fontconfig/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ vcpkg_from_gitlab(
no-etc-symlinks.patch
libgetopt.patch
fix-mingw-gperf-fallback.patch
fix-preprocessor-clang-cl.patch
)

vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")
Expand Down
2 changes: 1 addition & 1 deletion ports/fontconfig/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fontconfig",
"version": "2.14.0",
"port-version": 3,
"port-version": 4,
"description": "Library for configuring and customizing font access.",
"homepage": "https://www.freedesktop.org/wiki/Software/fontconfig",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2338,7 +2338,7 @@
},
"fontconfig": {
"baseline": "2.14.0",
"port-version": 3
"port-version": 4
},
"foonathan-memory": {
"baseline": "2019-07-21",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/fontconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "51b89b5deffdfb0ca92218871623ab22738d2178",
"version": "2.14.0",
"port-version": 4
},
{
"git-tree": "edebefba0511e2f8ee4018707fe611d0035c4dd4",
"version": "2.14.0",
Expand Down

0 comments on commit 55209aa

Please sign in to comment.