This PR fixes name mangling to be unambiguous / injective by adding `00` for disambiguation where necessary. Additionally, the inverse function, `Lean.Name.unmangle` has been added which can be used to unmangle a mangled identifier. This unmangler has been added to demonstrate the injectivity but also to allow unmangling identifiers e.g. for debugging purposes. Closes #10724
9 lines
323 B
Bash
Executable file
9 lines
323 B
Bash
Executable file
#!/usr/bin/env bash
|
|
exit 0 # TODO: remove after stage0 update
|
|
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
|