Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build polygon clipper only in tools builds #17319

Merged
merged 1 commit into from
Mar 13, 2018

Conversation

leonkrause
Copy link
Contributor

@leonkrause leonkrause commented Mar 6, 2018

thirdparty/misc/clipper.cpp uses exceptions, which are disabled in the HTML5 platform.

Fixes #16960

@akien-mga
Copy link
Member

No need for cherry-pick, the dependency is only in the master branch.

@leonkrause leonkrause deleted the polyclipper-toolsonly branch March 13, 2018 11:55
myhalibobo pushed a commit to myhalibobo/godot that referenced this pull request Sep 3, 2019
Reverts "Build polygon clipper only in tools builds" (see godotengine#17319)
which allows to build Clipper with tools disabled (release) and because
of that, Clipper has to be patched to optionally disable exceptions in
order to be built on some platforms.

Patched Clipper 6.4.2 to be compiled with exceptions enabled/disabled.
and ensure that Clipper-specific exception macros are defined: don't use
exceptions by default unless exception handling is detected.

Compilation with exceptions will be determined by various
C++ exceptions defines:

* ` __cpp_exceptions` is part of C++ feature testing macros (since C++98);
* `__EXCEPTIONS` is used by some GNU compilers;
* `_CPPUNWIND` is used by MSVC.

The user can override specific exceptions behavior via corresponding
`*_USER` macros (i.e. compiling for embedded systems).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants