-
Notifications
You must be signed in to change notification settings - Fork 200
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
Missing documentation how to build without RTTI #117
Comments
-DCMAKE_CXX_FLAGS=... should be the flag you're looking for.
Please let me know if it works but don't close this issue so I have a
reminder to document it.
…On Fri, 17 Apr 2020, 08:05 László Nagy, ***@***.***> wrote:
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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#117>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALZ4FZSEKMONJT4BKSSUELRNBV3HANCNFSM4MK2FS6A>
.
|
Thanks, it made it. But I could do only the
I'm using |
I'm not familiar with ExternalProject_Add, I'm afraid I don't know.
If you can get it to work great (and I'm happy to accept any PRs in that
direction) but note that this is not one of the officially supported ways
to build Fruit (see the install page of the wiki).
…On Fri, 17 Apr 2020, 16:23 László Nagy, ***@***.***> wrote:
Thanks, it made it. But I could do only the -lno-rtti passed. If I'm
specifying multiple flags, it starts to separate it by semicolon. Do you
know how to pass multiple flags?
-DCMAKE_CXX_FLAGS:STRING=-fno-exception -fno-rtti makes the compiler call
as c++ -fno-exception; -fno-rtti ..... Keep it together in a quote (like -DCMAKE_CXX_FLAGS:STRING="-fno-exception
-fno-rtti") is also failing with c++ ;-no-exception;-fno-rtti ....
I'm using ExternalProject_Add
<https://cmake.org/cmake/help/latest/module/ExternalProject.html> and the
CMAKE_CACHE_ARGS is the section expects the variables tagged with STRING
(or one of these <https://cmake.org/cmake/help/v3.0/prop_cache/TYPE.html>
types).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#117 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALZ4F7PTFHEWZS2PYQYURDRNDQFRANCNFSM4MK2FS6A>
.
|
The
wiki/FAQ
mentions that it's possible to build the library without RTTI. But thewiki/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 mainCMakeList.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 inconfiguration/CMakeLists.txt
where it assigns toCMAKE_REQUIRED_FLAGS
before runs the compiler checks.What would be the right way to disable it?
The text was updated successfully, but these errors were encountered: