mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
12 lines
325 B
Bash
12 lines
325 B
Bash
#!/usr/bin/env bash
|
|
|
|
# -main doesn't work anymore when used for linking only (without source modules)
|
|
# https://issues.dlang.org/show_bug.cgi?id=22863
|
|
|
|
set -e
|
|
|
|
FOO=${OUTPUT_BASE}/foo${OBJ}
|
|
|
|
$DMD -m"${MODEL}" -c ${TEST_DIR}/testmain.d -of=$FOO
|
|
$DMD -m"${MODEL}" -main $FOO -of=${OUTPUT_BASE}/result
|
|
rm_retry -r ${OUTPUT_BASE}
|