lean4-htt/tests/plugin/test_single.sh
Sebastian Ullrich 3b4b2cc89d
fix: do not dllexport symbols in core static libraries (#3601)
On Windows, we now compile all core `.o`s twice, once with and without
`dllexport`, for use in the shipped dynamic and static libraries,
respectively. On other platforms, we export always as before to avoid
the duplicate work.

---------

Co-authored-by: tydeu <tydeu@hatpress.net>
2024-03-15 11:58:34 +00:00

8 lines
281 B
Bash
Executable file

#!/usr/bin/env bash
source ../common.sh
# LEAN_EXPORTING needs to be defined for .c files included in shared libraries
compile_lean_c_backend -shared -o "${f%.lean}.so" -DLEAN_EXPORTING
expected_ret=1
exec_check lean -Dlinter.all=false --plugin="${f%.lean}.so" "$f"
diff_produced