-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch fmt so that it can be compiled with emscripten
- Loading branch information
Showing
3 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
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
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
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,13 @@ | ||
diff --git a/include/fmt/base.h b/include/fmt/base.h | ||
index 6276494..869e075 100644 | ||
--- a/include/fmt/base.h | ||
+++ b/include/fmt/base.h | ||
@@ -113,6 +113,8 @@ | ||
// Detect consteval, C++20 constexpr extensions and std::is_constant_evaluated. | ||
#if !defined(__cpp_lib_is_constant_evaluated) | ||
# define FMT_USE_CONSTEVAL 0 | ||
+#elif defined(__EMSCRIPTEN__) | ||
+# define FMT_USE_CONSTEVAL 0 | ||
#elif FMT_CPLUSPLUS < 201709L | ||
# define FMT_USE_CONSTEVAL 0 | ||
#elif FMT_GLIBCXX_RELEASE && FMT_GLIBCXX_RELEASE < 10 |