Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
927542f6
Commit
927542f6
authored
Sep 26, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new CMake flag for disabling exceptions
parent
33b0914b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
CMakeLists.txt
CMakeLists.txt
+17
-1
configure
configure
+5
-0
No files found.
CMakeLists.txt
View file @
927542f6
...
...
@@ -15,6 +15,14 @@ if(WIN32 AND NOT CAF_BUILD_STATIC_ONLY)
set
(
CAF_BUILD_STATIC_ONLY yes
)
endif
()
################################################################################
# set included flags if needed #
################################################################################
if
(
CAF_FORCE_NO_EXCEPTIONS
)
set
(
CAF_NO_EXCEPTIONS
)
endif
()
################################################################################
# set prefix paths if available #
################################################################################
...
...
@@ -157,9 +165,17 @@ if(CAF_CXX_WARNINGS_AS_ERRORS)
endif
()
# set compiler flags for GCOV if requested
if
(
CAF_ENABLE_GCOV
)
set
(
NO_INLINE
"-fno-inline -fno-inline-small-functions -fno-default-inline"
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"Clang"
)
set
(
NO_INLINE
"-fno-inline"
)
else
()
set
(
NO_INLINE
"-fno-inline -fno-inline-small-functions -fno-default-inline"
)
endif
()
set
(
EXTRA_FLAGS
"
${
EXTRA_FLAGS
}
-fprofile-arcs -ftest-coverage
${
NO_INLINE
}
"
)
endif
()
# set -fno-exception if requested
if
(
CAF_FORCE_NO_EXCEPTIONS
)
set
(
EXTRA_FLAGS
"
${
EXTRA_FLAGS
}
-fno-exceptions"
)
endif
()
# enable a ton of warnings if --more-clang-warnings is used
if
(
CAF_MORE_WARNINGS
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"Clang"
)
...
...
configure
View file @
927542f6
...
...
@@ -50,6 +50,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--no-compiler-check disable compiler version check
--no-auto-libc++ do not automatically enable libc++ for Clang
--no-exceptions build CAF without C++ exceptions
--force-no-exceptions build CAF with '-fno-exceptions'
--warnings-as-errors enables -Werror
Installation Directories:
...
...
@@ -246,6 +247,10 @@ while [ $# -ne 0 ]; do
--no-exceptions
)
append_cache_entry CAF_NO_EXCEPTIONS BOOL
yes
;;
--force-no-exceptions
)
append_cache_entry CAF_NO_EXCEPTIONS BOOL
yes
append_cache_entry CAF_FORCE_NO_EXCEPTIONS BOOL
yes
;;
--warnings-as-errors
)
append_cache_entry CAF_CXX_WARNINGS_AS_ERRORS BOOL
yes
;;
...
...
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