Closed zwarich closed 8 hours ago
This appears to be caused by the test Makefiles setting LEAN_CC
but not passing the additional flags that leanc
would add. Commenting out the line setting LEAN_CC
fixes the problem, but I don't know if that's acceptable for all targets. It does look like this change to set LEAN_CC
was a few weeks prior to the creation of leanc
, so maybe it's no longer necessary?
Prerequisites
Description
When C++ files are built as part of Lake tests, they do not pass
-isysroot
to Clang, which causes Clang to be unable to find system libraries.Steps to Reproduce
cmake --preset release
.make -C build/release -j<N>
.make -C build/release test -j<N>
.Expected behavior:
Invocations of the C++ compiler by Lake succeed.
Actual behavior:
The C++ compiler emits errors indicative of an unspecified sysroot, e.g.
Versions
lean4 d9d54c1f9 macOS Sonoma 14.7.1