google / google/fruit

Missing documentation how to build without RTTI

Open
#117 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.9k
Forks
202
PR merge metrics
No merged PRs in 30d

Description

The `wiki/FAQ` mentions that it's possible to build the library without RTTI. But the `wiki/Install` page does not give clear guidance how to achieve that.

I've been trying to these flags without success:

- `-DFRUIT_ADDITIONAL_CXX_FLAGS:STRING="-fno-exceptions -fno-rtti"` I saw this in the main `CMakeList.txt`, but looks like it's not used when the compiler is checked.
- `-DFRUIT_COMPILE_FLAGS:STRING="-fno-exceptions -fno-rtti"` I've found this in `configuration/CMakeLists.txt` where it assigns to `CMAKE_REQUIRED_FLAGS` before runs the compiler checks.

What would be the right way to disable it?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.