mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Use app path in output
This commit is contained in:
parent
a78434fd48
commit
eb6a7b51ff
3 changed files with 74 additions and 22 deletions
|
@ -85,6 +85,9 @@ pub fn build_file(
|
|||
buf
|
||||
);
|
||||
|
||||
let cwd = app_o_file.parent().unwrap();
|
||||
let binary_path = cwd.join(&*loaded.output_path); // TODO should join ".exe" on Windows
|
||||
|
||||
program::gen_from_mono_module(
|
||||
&arena,
|
||||
loaded,
|
||||
|
@ -106,11 +109,8 @@ pub fn build_file(
|
|||
size,
|
||||
);
|
||||
|
||||
let cwd = app_o_file.parent().unwrap();
|
||||
|
||||
// Step 2: link the precompiled host and compiled app
|
||||
let host_input_path = cwd.join("platform").join("host.o");
|
||||
let binary_path = cwd.join("app"); // TODO should be app.exe on Windows
|
||||
|
||||
// TODO we should no longer need to do this once we have platforms on
|
||||
// a package repository, as we can then get precompiled hosts from there.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue