Open bstarynk opened 3 years ago
I think you just need to execute cmake with "cmake -DCMAKE_BUILD_TYPE=Debug", and it will a be a debug build with -g and not sure but probably -O0. To select which version of gcc, use -DCMAKE_C_COMPILER=/bin/... and -DCMAKE_CXX_COMPILER=...
Regards, david.
On Sun, 25 Oct 2020 at 06:54, Basile Starynkevitch notifications@github.com wrote:
For the RefPerSys http://refpersys.org project (some artificial intelligence open source software), it would be useful to build libonion (on Linux/x86-64) with both optimizations and DWARF https://en.wikipedia.org/wiki/DWARF enabled. That is to compile libonion's C code with e.g. at least gcc -Wall -O -g (or perhaps gcc -Wall -O2 -g...) and the C++ code with e.g. g++ -Wall -O -g.
It would also be nice to have written instructions on how to choose the version of GCC http://gcc.gnu.org/; think of some Debian system having both /usr/bin/gcc-9 and /usr/bin/gcc-10.
Notice that I am unfamiliar with cmake
Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/davidmoreno/onion/issues/274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACOZOWJV4FUJU7YJZCK7P3SMO4P3ANCNFSM4S6DFYEA .
-- David Moreno Montero
dmoreno@coralbits.com +34 658 18 77 17 [image: Coralbits.com] http://www.coralbits.com/ http://www.coralbits.com
For the RefPerSys project (some artificial intelligence open source software), it would be useful to build libonion (on Linux/x86-64) with both optimizations and DWARF enabled. That is to compile libonion's C code with e.g. at least
gcc -Wall -O -g
(or perhapsgcc -Wall -O2 -g
...) and the C++ code with e.g.g++ -Wall -O -g
.It would also be nice to have written instructions on how to choose the version of GCC; think of some Debian system having both
/usr/bin/gcc-9
and/usr/bin/gcc-10
.Notice that I am unfamiliar with
cmake
Thanks