Brendan Hansknecht
0f4df1f677
clippy
2023-04-25 14:22:13 -07:00
Brendan Hansknecht
0e24403664
enable using other zig libaries in host instead of just str.zig
2023-04-25 14:14:35 -07:00
Brendan Hansknecht
e2868fa5fc
add missing import for windows
2023-04-25 09:00:56 -07:00
Brendan Hansknecht
f9f7a1a3e8
fix typo
2023-04-25 08:39:31 -07:00
Brendan Hansknecht
fbcea3f3f5
update number of relative paths to deal with tests
2023-04-25 08:32:12 -07:00
Brendan Hansknecht
d47c4616f2
switch checking for str.zig to be relative to the exectuable
2023-04-25 07:39:19 -07:00
Folkert
7af408f58d
split cmd args
2023-04-21 12:10:23 +02:00
Folkert
4cd8f0a056
clippy --fix fixes
2023-04-21 12:05:51 +02:00
Anton-4
bd6ae25cbc
remove undefined -dynamic_lookup
...
350845837
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-04-18 19:41:01 +02:00
Anton-4
5f2d550c3d
fmt
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-04-18 17:58:11 +02:00
Anton-4
a99aba7da4
try leaving out no_fixup_chains ld arg
...
350816436
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-04-18 17:52:34 +02:00
Brendan Hansknecht
cb191d3788
Split utils into error and command utils
...
Error utils pulls in snafu which requires procedural macros.
This means it can't start compiling until syn and macro related crates are compiled.
This deals compiling all crates that depend on commands like running zig for the bitcode.
The split enables those crates to run sooner.
2023-03-10 09:39:43 -08:00
Brendan Hansknecht
d5e191d083
split up bitcode building to reduce dependency chains
2023-03-10 09:39:43 -08:00
Brendan Hansknecht
7a944113a0
move build_file and related functions to roc_build
...
This is needed of glue to be able to call build_file.
Also does some other changes to avoid circular dependencies.
2023-03-04 10:00:43 -08:00
Folkert
c79ae98d16
use allocate_with_refcount in the dev backend
2023-02-08 00:56:45 +01:00
Anton-4
4d237d79a7
also search dirs one level below
2023-01-31 19:37:30 +01:00
Anton-4
b47e086f50
support more complex target folder situation
2023-01-31 17:32:55 +01:00
Anton-4
73f46b6613
update flake so that rust 1.65 is used for default.nix, macos clippy fixes
2023-01-17 18:44:24 +01:00
Anton-4
a97c53d7ca
1.65 changes and clippy fixes
2023-01-17 18:09:16 +01:00
Folkert
479caaf0a9
clean up path usage
2022-12-29 16:50:21 +01:00
Folkert
356875a851
simplify host extension
2022-12-29 16:50:20 +01:00
Folkert
a2c760aa56
keep conditional compilation local
2022-12-29 16:50:20 +01:00
Brendan Hansknecht
1164fb4767
ignore fixup chains
2022-12-14 20:31:56 -08:00
Brendan Hansknecht
1b92a24577
avoid building platform for link type dylib and no link
...
Both of these cases do not tie to a platform. The roc app can be built without considering the platform.
It is often the case that the platform is using one of these options because roc cannot build the platform.
This allows for more flexibility and avoids wasting time compiling the platform.
2022-12-14 17:34:07 -08:00
Anton-4
0b98609a22
check the exit status of the link cmd
2022-11-29 16:53:04 +01:00
Anton-4
91266a03c6
change matadata filename based on target
2022-11-28 15:18:15 +01:00
Richard Feldman
28bccb792f
Merge remote-tracking branch 'origin/main' into precompiled-legacy
2022-11-24 02:20:50 -05:00
Richard Feldman
04e3ac37f4
Fix wasm host_dest name generation
2022-11-23 00:06:43 -05:00
Richard Feldman
c0b065b51a
Fix a couple of preprocessed host bugs
2022-11-22 23:38:07 -05:00
Richard Feldman
d9f3e11634
Add wasm32 support to preprocessed_host_filename
2022-11-22 23:02:12 -05:00
Richard Feldman
bcf53e58fe
Fix a missing to_str() on Windows
2022-11-22 22:44:42 -05:00
Richard Feldman
4e50d3fe2e
Fix a missing .to_str()
2022-11-22 20:58:17 -05:00
Richard Feldman
a8b6fa051a
Centralize host tempfile builder logic
2022-11-22 20:52:44 -05:00
Richard Feldman
0b73ea69af
Make sure tempfiles don't get dropped too early
2022-11-22 20:22:08 -05:00
Richard Feldman
6b446fe592
Avoid an unused variable warning
2022-11-22 19:25:15 -05:00
Richard Feldman
9c1291d57d
Give tempfiles the file extensions Zig expects
2022-11-22 19:19:54 -05:00
Richard Feldman
16fd39c4f7
Missed a couple of .to_str().unwrap()s
2022-11-22 18:51:01 -05:00
Richard Feldman
2d83c95d23
Only reference native host binaries (for now)
2022-11-22 18:40:08 -05:00
Richard Feldman
4a601ffd4c
Use tempfile::NamedTempFile in more places
2022-11-22 18:40:06 -05:00
Richard Feldman
e97a5fe7f6
Use include_bytes! so builtin hosts live in binary
2022-11-22 17:57:32 -05:00
Richard Feldman
2dba97d6a2
Simplify legacy_host_filename_ext
2022-11-22 17:19:36 -05:00
Richard Feldman
062ecce84c
Change preprocessedhost filename
2022-11-18 23:54:21 -05:00
Richard Feldman
7f617c87bf
Change precompiled host filename format
2022-11-18 17:08:10 -05:00
Richard Feldman
fa2e0648ca
Fix wasm32 host filename generation
2022-11-18 16:47:29 -05:00
Richard Feldman
e4e629c4e4
clippy doesn't like Result with () for the error
2022-11-18 14:45:12 -05:00
Richard Feldman
ebc314691c
Fix Swift linking
2022-11-18 14:26:04 -05:00
Richard Feldman
b80d92e344
Use legacy_host_filename instead of always host.o
2022-11-18 14:15:48 -05:00
Anton-4
29230921e6
windows fixes
2022-11-14 19:37:25 +01:00
Folkert
b6df9fe0dc
display the command nicely
2022-11-12 14:11:00 +01:00
Folkert
d3d9320eb9
revert to old style
2022-11-12 00:45:17 +01:00