-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support fmt use in debug builds (#456)
Fixes #454 Backport of an upstream patch (fmtlib/fmt#3352) to our version of fmt 9.1 Authors: - Robert Maynard (https://github.com/robertmaynard) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) URL: #456
- Loading branch information
1 parent
87696af
commit 9a2cfe8
Showing
2 changed files
with
21 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/include/fmt/core.h b/include/fmt/core.h | ||
index f6a37af..ffabe63 100644 | ||
--- a/include/fmt/core.h | ||
+++ b/include/fmt/core.h | ||
@@ -286,7 +286,7 @@ | ||
|
||
// Enable minimal optimizations for more compact code in debug mode. | ||
FMT_GCC_PRAGMA("GCC push_options") | ||
-#if !defined(__OPTIMIZE__) && !defined(__NVCOMPILER) | ||
+#if !defined(__OPTIMIZE__) && !defined(__NVCOMPILER) && !defined(__LCC__) && !defined(__CUDACC__) | ||
FMT_GCC_PRAGMA("GCC optimize(\"Og\")") | ||
#endif | ||
|
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