Brian Carroll
5fffea969a
Provide a way for non-wasm Rust code to find the WASI libc
2022-05-03 19:12:36 +01:00
Brian Carroll
dd1d49db75
Build WASI libc using Zig, instead of using a checked-in binary
2022-05-03 08:00:58 +01:00
Ayaz Hafiz
3fb1b39871
Spin ldopen on Aarch64 tests
2022-04-27 22:43:39 -04:00
Ayaz Hafiz
0f863bdd85
Explicitly use large code models in AArch64 code gen
...
This appears to be necessary to compile our programs on AArch64 boxes.
My guess is special-cased code due to PIEs for large code models in
LLVM's codebase but I really have no idea.
2022-04-26 16:42:55 -04:00
Richard Feldman
babe281b5d
Merge pull request #2780 from rtfeldman/no-link
...
Add --no-link flag for more complex linking cases
2022-04-08 23:49:48 -04:00
Folkert
0dd2cec09a
update with new clippy lints
2022-03-31 19:34:51 +02:00
Brendan Hansknecht
76ffb4f278
Add --no-link flag for more complex linking cases
2022-03-29 18:20:29 -07:00
SylvanSign
b3c6b5ccc9
fix target str issue with zig and GNU/Linux + ARM
2022-03-27 15:41:02 -04:00
Anton-4
5ec2125ac6
Merge branch 'trunk' into windows_fixes
2022-02-28 19:12:18 +01:00
Anton-4
6acd2f338b
successful cargo build on windows
2022-02-28 18:11:14 +01:00
Brendan Hansknecht
85ae871ced
remove init_arch from link
2022-02-25 15:36:12 -08:00
Brendan Hansknecht
ec411b7a62
Also build host for size when using --opt-size
2022-02-24 16:21:12 -08:00
Folkert de Vries
3066aef1b7
Merge pull request #2550 from rtfeldman/improve-link-lib64
...
[Enhancement] Improve library lookup in native linker
2022-02-23 23:25:33 +01:00
Richard Feldman
7dc92fe6f4
clippy
2022-02-21 22:15:24 -05:00
Richard Feldman
afa8d228ef
cargo fmt
2022-02-21 20:35:29 -05:00
Brian J. Cardiff
b27eee7f6b
Read ROC_LINK_FLAGS env var to inject more link flags
...
Flags should not contain whitespaces since the value is split on them
Update compiler/build/src/link.rs
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
2022-02-21 21:29:58 -03:00
Emi Simpson
b5b26eabc9
Amend ff0c994
: 🐛 Search the /lib/<arch> directory
2022-02-21 17:18:11 -05:00
Emi Simpson
97b99e7cfb
Amend ff0c994
: 🐛 Re-add support for Rust < 0.58
2022-02-21 15:34:55 -05:00
Emi Simpson
ff0c994668
Improve library lookup in native linker
...
🐛 Fix bug where /usr/lib isn't checked if /usr/lib/{arch} exists
✨ Better error messages on missing libraries
✨ Check /usr/lib64 for libraries
2022-02-21 10:18:23 -05:00
Jan Van Bruggen
2f80d64056
Link macOS with AudioUnit, CoreAudio, IOKit frameworks
...
AudioUnit & CoreAudio are necessary to get
[Bevy](https://docs.rs/bevy/latest/bevy/ )'s "hello world" example
working inside a Roc platform.
IOKit is necessary to get
[Bevy](https://docs.rs/bevy/latest/bevy/ )'s "breakout" example
working inside a Roc platform.
Credit to @hafiz for discovering this solution.
2022-01-31 11:17:30 -07:00
Richard Feldman
29caf5d301
Make macOS frameworks link properly
2022-01-30 11:01:31 -05:00
Folkert
73bc50c952
make the surgical linker aware of custom exported closure names
2022-01-25 00:13:22 +01:00
Folkert
022b1ca83a
use ROC_ZIG environment variable to configure which zig is used
2021-12-25 22:27:52 +01:00
ayazhafiz
c17b9ffaa3
Fix compiler builds on macOS
...
`cargo build` is currently failing on trunk. #1986 added an extra
parameter to the definition of `build_zig_host_native` active for
non-macOS targets, but did not reflect that parameter in the
macOS-specific definition.
I don't think there is a good way to test against these kinds of things
without a dedicated macOS machine on the CI runner (`cargo check
--target x86_64-apple-darwin` won't work since some dependencies need
arch-specific things to be present during build time). Any suggestions
are appreciated!
2021-11-17 17:45:02 -05:00
Anton-4
0f064c121e
Merge branch 'trunk' into valgrind_instr_fix
2021-11-16 12:24:26 +01:00
Anton-4
04db9fe212
removed dbg
2021-11-15 13:54:05 +01:00
Anton-4
6e23919811
put mcpu in comments
2021-11-15 13:43:19 +01:00
Anton-4
030a504bd2
valgrind flag
2021-11-13 14:39:15 +01:00
Joost Baas
4ed25fb351
make sure get_macos_version() returns string without newline
2021-11-11 21:39:39 +01:00
Folkert de Vries
56c7318cd9
Merge branch 'trunk' into zig9-to-zig
2021-11-10 12:37:39 +01:00
Nathan Bleigh
2dd86b1f18
Updates zig9 to zig
...
Referenced in https://github.com/rtfeldman/roc/pull/1905
2021-11-09 21:18:18 -06:00
Folkert
4e2b41f924
fix variable not updated in code disabled by feature flags
2021-11-09 23:04:31 +01:00
Folkert
a9ce02799c
WIP
2021-11-09 21:37:56 +01:00
Brendan Hansknecht
4a4a07441e
Merge remote-tracking branch 'origin' into deps
2021-11-06 13:10:33 -07:00
Anton
03f76dfa37
fixed ld warning
2021-11-06 16:21:35 +01:00
Brendan Hansknecht
d49ac68bcc
Update dep with major version changes
2021-11-05 19:19:37 -07:00
Oleksii Skidan
9136180499
Move macos minimum version after the arch. Set it to 10.15 -- the last 10.x release.
2021-11-05 11:57:48 +02:00
Oleksii Skidan
ae25b800bb
Force ld to add information about the target platform.
2021-11-04 23:11:27 +02:00
Luiz Carlos L. G. de Oliveira
cf1d365170
Merge branch 'trunk' into Change--arch-flag-to--A-when-calling-ld
2021-11-03 22:04:51 -03:00
Luiz Carlos L. G. de Oliveira
7cdf8a9d70
Merge branch 'trunk' into Change--arch-flag-to--A-when-calling-ld
2021-11-03 09:25:36 -03:00
Luiz Carlos L. G. de Oliveira
07246c8c6e
Change linking for linux to correctly specify architecture
...
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
2021-11-03 09:16:07 -03:00
Shritesh Bhattarai
e3a0dfe264
Separate ld_command and ld_child
2021-11-02 21:13:37 -04:00
Shritesh Bhattarai
ec78b9eade
Move sdk_path back up
2021-11-02 21:10:50 -04:00
Shritesh Bhattarai
6c6d64506b
Revert comment layout oops
2021-11-02 20:56:40 -04:00
Shritesh Bhattarai
8b2d3dbe44
Swiftc -O support
2021-11-02 20:33:04 -04:00
Shritesh Bhattarai
66e9a7f82e
No need to allocate a vec
2021-11-02 20:28:10 -04:00
Shritesh Bhattarai
6590d4fe41
big_sur_fix -> sdk_path
2021-11-02 20:28:10 -04:00
Shritesh Bhattarai
bc63536938
A lot of todos but big RocStr works
2021-11-02 20:28:10 -04:00
Shritesh Bhattarai
fed61702ce
Pass target_triple_str instead of native to aarch64 zig
2021-11-02 09:24:52 -04:00
Luiz de Oliveira
8d1e1f043f
Change --arch flag to -A when calling ld
2021-10-30 16:07:08 -03:00