rebar.config: explicitly name escript main modules, so the scripts work even if renamed

This commit is contained in:
Mikael Pettersson
2023-08-24 21:23:03 +02:00
parent 5754587b35
commit a55acb51f5

View File

@@ -79,15 +79,13 @@
, {sim_core, calculate_ea, 5}
]}.
{escript_emu_args, "%%! +sbtu +A1 +Bd -noshell -smp auto\n"}.
{profiles,
[ {'8to9', [{escript_main_app, '8to9'}]}
, {ar, [{escript_main_app, ar}]}
, {as, [{escript_main_app, as}]}
, {ld, [{escript_main_app, ld}]}
, {nm, [{escript_main_app, nm}]}
, {od, [{escript_main_app, od}]}
, {readelf, [{escript_main_app, readelf}]}
, {sim, [{escript_main_app, sim}]}
{profiles, % append "-escript main <MainApp>" so the scripts work even if they are renamed (e.g. prefixed by pdp10-elf-)
[ {'8to9', [{escript_main_app, '8to9'}, {escript_emu_args, "%%! +sbtu +A1 +Bd -noshell -smp auto -escript main 8to9\n"}]}
, {ar, [{escript_main_app, ar}, {escript_emu_args, "%%! +sbtu +A1 +Bd -noshell -smp auto -escript main ar\n"}]}
, {as, [{escript_main_app, as}, {escript_emu_args, "%%! +sbtu +A1 +Bd -noshell -smp auto -escript main as\n"}]}
, {ld, [{escript_main_app, ld}, {escript_emu_args, "%%! +sbtu +A1 +Bd -noshell -smp auto -escript main ld\n"}]}
, {nm, [{escript_main_app, nm}, {escript_emu_args, "%%! +sbtu +A1 +Bd -noshell -smp auto -escript main nm\n"}]}
, {od, [{escript_main_app, od}, {escript_emu_args, "%%! +sbtu +A1 +Bd -noshell -smp auto -escript main od\n"}]}
, {readelf, [{escript_main_app, readelf}, {escript_emu_args, "%%! +sbtu +A1 +Bd -noshell -smp auto -escript main readelf\n"}]}
, {sim, [{escript_main_app, sim}, {escript_emu_args, "%%! +sbtu +A1 +Bd -noshell -smp auto -escript main sim\n"}]}
]}.