-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch: fix: Do not use generator expression for "/utf-8" on Windows
Signed-off-by: Julien Jerphanion <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
recipe/0001-fix-Do-not-use-generator-expression-for-utf-8-on-Win.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From f9761e6f86d095cd606a7981a581ab4eeac47555 Mon Sep 17 00:00:00 2001 | ||
From: Julien Jerphanion <[email protected]> | ||
Date: Mon, 12 Aug 2024 14:52:38 +0200 | ||
Subject: [PATCH] fix: Do not use generator expression for "/utf-8" on Windows | ||
|
||
See: https://github.com/facebook/folly/issues/2250 | ||
|
||
Signed-off-by: Julien Jerphanion <[email protected]> | ||
--- | ||
CMake/GenPkgConfig.cmake | 9 +++++++++ | ||
1 file changed, 9 insertions(+) | ||
|
||
diff --git a/CMake/GenPkgConfig.cmake b/CMake/GenPkgConfig.cmake | ||
index 0e93175bd..b8875fbf1 100644 | ||
--- a/CMake/GenPkgConfig.cmake | ||
+++ b/CMake/GenPkgConfig.cmake | ||
@@ -105,6 +105,15 @@ function(gen_pkgconfig_vars) | ||
) | ||
endif() | ||
|
||
+ # On Windows replace "$<$<COMPILE_LANGUAGE:CXX>:/utf-8>" with "/utf-8" | ||
+ # See: https://github.com/facebook/folly/issues/1433 | ||
+ if(WIN32) | ||
+ string(REPLACE | ||
+ "$<$<COMPILE_LANGUAGE:CXX>:/utf-8>" "/utf-8" | ||
+ cflags "${cflags}" | ||
+ ) | ||
+ endif() | ||
+ | ||
set("${var_prefix}_CFLAGS" "${cflags}" PARENT_SCOPE) | ||
set("${var_prefix}_PRIVATE_LIBS" "${private_libs}" PARENT_SCOPE) | ||
endfunction() | ||
-- | ||
2.45.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters