test/blackbox-tests/test-cases/foreign-stubs/linker-working-directory-github7146.t/workaround/dune
raw| 1 | (library |
| 2 | (name foo_workaround) |
| 3 | (foreign_stubs |
| 4 | (language c) |
| 5 | (names native_wrapper)) |
| 6 | (no_dynlink) |
| 7 | (foreign_archives native) |
| 8 | (c_library_flags :standard -lnative -L%{read:cwd.txt})) |
| 9 | |
| 10 | (rule (with-stdout-to cwd.txt (run pwd))) |
| 11 | |
| 12 | (rule |
| 13 | (targets native_wrapper.c libnative.a) |
| 14 | (deps %{project_root}/native_wrapper.c %{project_root}/libnative.a) |
| 15 | (action (run cp %{deps} .))) |