Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
a11eb3a0
Commit
a11eb3a0
authored
Aug 22, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround various icc bugs (#822)
parent
62010520
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
include/fmt/printf.h
include/fmt/printf.h
+3
-1
test/CMakeLists.txt
test/CMakeLists.txt
+4
-1
No files found.
CMakeLists.txt
View file @
a11eb3a0
...
...
@@ -92,7 +92,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set
(
WERROR_FLAG -Werror
)
endif
()
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
set
(
PEDANTIC_COMPILE_FLAGS -Weverything -Wpedantic
-Wno-weak-vtables -Wno-padded -Wno-gnu-statement-expression
-Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-reserved-id-macro
...
...
include/fmt/printf.h
View file @
a11eb3a0
...
...
@@ -337,7 +337,9 @@ struct printf_formatter {
/** This template formats data and writes the output to a writer. */
template
<
typename
OutputIt
,
typename
Char
,
typename
ArgFormatter
>
class
basic_printf_context
:
private
internal
::
context_base
<
// Inherit publicly as a workaround for the icc bug
// https://software.intel.com/en-us/forums/intel-c-compiler/topic/783476.
public
internal
::
context_base
<
OutputIt
,
basic_printf_context
<
OutputIt
,
Char
,
ArgFormatter
>
,
Char
>
{
public:
/** The character type for the output. */
...
...
test/CMakeLists.txt
View file @
a11eb3a0
...
...
@@ -123,7 +123,10 @@ else ()
endif
()
# Test that the library can be compiled with exceptions disabled.
check_cxx_compiler_flag
(
-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG
)
# -fno-exception is broken in icc: https://github.com/fmtlib/fmt/issues/822.
if
(
NOT CMAKE_CXX_COMPILER_ID STREQUAL
"Intel"
)
check_cxx_compiler_flag
(
-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG
)
endif
()
if
(
HAVE_FNO_EXCEPTIONS_FLAG
)
add_library
(
noexception-test ../src/format.cc
)
target_include_directories
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment