-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make compile options public for
v8pp
CMake target
Set alos explicit `-fexceptions` flag for `v8pp` target. See issue #176
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 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
6611145
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not ideal, as other projects linking against v8pp::v8pp will inherit -fno-rtti -Wall -Wextra -Wpedantic as well as -fexceptions.
-fno-rtti can cause issues with many C++ features and libraries, in particular. Would the MacOS fix work if most of these options were still kept private, with just -fexceptions being public?
6611145
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, thanks!
Unfortunately it seems that on macOS
-fno-rtti
is needed to be public the v8pp is a shared library, and-fexceptions
has no effect at all. I'm going to make the-fno-rtti
public only for macOS build.