Open alexf91 opened 8 months ago
Some progress:
Building everything with the system's clang++
seems to work, for both 15 and 16.
LEAN_CC=clang++ lake build tests
This results in a lot of warnings, because we can't set a separate compiler for C and C++ files:
[4/10] Compiling CTypes.Core.Basic
stderr:
clang-16: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
The
lakefile.lean
currently links against hardcoded system libraries. This works fine for examples and tests, but only when they are executed withlake exe <executable>
.Libraries depending on
CTypes
also require that the same libraries are set in the project as well. This should be inherited fromCTypes
.Output of
ldd build/bin/tests
:Output of
lake env ldd build/bin/tests
: