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>
8 lines
281 B
Bash
Executable file
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
|