Commit graph

310 commits

Author SHA1 Message Date
Brian Carroll
85b418ebdf wasm: get rid of Result from gen_wasm, rename a function, improve comments 2022-02-08 11:03:48 +00: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
afd11e1cb1 move target -> roc_target 2022-01-26 23:33:29 +01:00
Folkert
c663a35e16 final phase 2022-01-26 15:44:24 +01:00
Folkert
74932a4cab phase 2 2022-01-26 14:30:37 +01:00
Folkert
73bc50c952 make the surgical linker aware of custom exported closure names 2022-01-25 00:13:22 +01:00
Brian Carroll
54e820620a Wasm: Improve a todo in roc_build 2022-01-15 14:34:06 +00:00
Brian Carroll
7f5b8c7296 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-pre-linking 2022-01-14 18:20:24 +00:00
Joshua Warner
6e67b77fa1 Remove awkward split between header_sources and defs sources 2022-01-13 19:34:17 -08:00
ayazhafiz
6ea7d63380 Make sure line offsets are generated properly for external programs
Closes #2329
2022-01-13 20:59:03 -05:00
Brian Carroll
9c0abcd0da Wasm: Preload WasmModule from object file bytes 2022-01-13 05:41:52 +00:00
Joshua Warner
82d2be0635 Introduce LineColumnRegion and force conversion 2022-01-01 18:20:05 -08:00
Folkert
022b1ca83a use ROC_ZIG environment variable to configure which zig is used 2021-12-25 22:27:52 +01:00
Brendan Hansknecht
8c6e5360cd Remove Cell around interns 2021-12-07 16:54:06 -08:00
Folkert
3291cc680e use Cell, remove threading of identids 2021-12-03 21:50:26 +01:00
Folkert
edf113513c add helper methods for layout -> string conversion in dev backend 2021-12-03 20:49:09 +01:00
Brian Carroll
e088eceb29 Generate refcounting procs in gen_dev 2021-12-02 15:41:09 +00:00
Brian Carroll
d0ef1e5b36 Route IdentIds to refcount proc generator in dev backend 2021-12-02 09:58:34 +00:00
Brian Carroll
820d9e0ab4 Register debug names for new Symbols, and refactor to avoid borrow-checker issues 2021-11-30 09:57:00 +00:00
Brian Carroll
e7d8c7c895 Make gen_wasm's Env mutable 2021-11-30 09:57:00 +00:00
Brian Carroll
ebc1fd6880 Get rid of special ModuleId for refcounting code 2021-11-30 09:57:00 +00:00
Brian Carroll
2ad032f894 Integrate refcount proc generator with Wasm backend 2021-11-30 09:57:00 +00:00
Brendan Hansknecht
a63dd1eb61 use unimplemented! and internal_error! instead of result in dev backend 2021-11-27 12:38:29 -08:00
Richard Feldman
91c97dbba4
Merge pull request #2006 from rtfeldman/fix-macos-builds-1968
Fix compiler builds on macOS
2021-11-17 20:17:11 -05: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
Callum Dunster
f972098e70 Move reporting module into root. 2021-11-16 19:58:21 +01: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
33e8f9a6b7 Merge remote-tracking branch 'origin/trunk' into cleanup-im-dependency 2021-11-10 17:19:54 +01:00
Folkert
5632e3159d remove im dependency where not needed 2021-11-10 16:00:22 +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
40f0271ccf Fix M1 mac build
I changed wasmer to use the llvm backend because it compiles the fastest and supports aarch64.
If we later run into llvm versioning issues of some sort, we should switch this to cranelift.
Also re-adds serde-json which is used on macos.
2021-11-06 14:08:19 -07:00
Brendan Hansknecht
73e2cbcb1e Make versions numbers consistent and matching the lock files 2021-11-06 13:24:45 -07: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
Brendan Hansknecht
bddc08c977 Remove unused dependencies 2021-11-05 16:58:11 -07:00
Richard Feldman
fcc5c82f8c
Merge pull request #1891 from rtfeldman/cleanup-targets
Target Feature cleanup
2021-11-05 07:47:33 -04: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
Brendan Hansknecht
f38f57e078 swap x86 and x86_64 2021-11-04 22:19:53 -07:00
Brendan Hansknecht
868e9392b1 appease clippy 2021-11-04 22:04:23 -07:00
Brendan Hansknecht
d78b351798 cleanup targets and llvm config to properly progate and build with any subset of features 2021-11-04 21:48:04 -07:00
Oleksii Skidan
ae25b800bb Force ld to add information about the target platform. 2021-11-04 23:11:27 +02:00