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
33ee4cc5
Commit
33ee4cc5
authored
Dec 26, 2021
by
Vladislav Shchapov
Committed by
Victor Zverovich
Dec 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve noexception test
parent
3bbf2c67
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
test/CMakeLists.txt
test/CMakeLists.txt
+1
-1
test/noexception-test.cc
test/noexception-test.cc
+18
-0
No files found.
test/CMakeLists.txt
View file @
33ee4cc5
...
@@ -144,7 +144,7 @@ if (FMT_PEDANTIC)
...
@@ -144,7 +144,7 @@ if (FMT_PEDANTIC)
check_cxx_compiler_flag
(
-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG
)
check_cxx_compiler_flag
(
-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG
)
endif
()
endif
()
if
(
HAVE_FNO_EXCEPTIONS_FLAG
)
if
(
HAVE_FNO_EXCEPTIONS_FLAG
)
add_library
(
noexception-test ../src/format.cc
)
add_library
(
noexception-test ../src/format.cc
noexception-test.cc
)
target_include_directories
(
target_include_directories
(
noexception-test PRIVATE
${
PROJECT_SOURCE_DIR
}
/include
)
noexception-test PRIVATE
${
PROJECT_SOURCE_DIR
}
/include
)
target_compile_options
(
noexception-test PRIVATE -fno-exceptions
)
target_compile_options
(
noexception-test PRIVATE -fno-exceptions
)
...
...
test/noexception-test.cc
0 → 100644
View file @
33ee4cc5
// Formatting library for C++ - Noexception tests
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
#include "fmt/args.h"
#include "fmt/chrono.h"
#include "fmt/color.h"
#include "fmt/compile.h"
#include "fmt/core.h"
#include "fmt/format.h"
#include "fmt/os.h"
#include "fmt/ostream.h"
#include "fmt/printf.h"
#include "fmt/ranges.h"
#include "fmt/xchar.h"
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