Brian Carroll
01b47a2ec7
Add inline directives to ensure unit placeholders are optimised away
2021-11-05 12:11:37 +00:00
Brian Carroll
d220ed7a23
Refactor module section serialization
2021-11-05 12:11:33 +00:00
Richard Feldman
fcc5c82f8c
Merge pull request #1891 from rtfeldman/cleanup-targets
...
Target Feature cleanup
2021-11-05 07:47:33 -04:00
Richard Feldman
256fdbf8e7
Merge pull request #1889 from rtfeldman/wasm_string
...
Add support for string literals to gen_wasm
2021-11-05 07:46:14 -04:00
Richard Feldman
bbb14af587
Add Luiz Carlos to AUTHORS
2021-11-05 07:45:34 -04:00
Richard Feldman
bba42c0c22
Add Oleksii Skidan to AUTHORS
2021-11-05 07:44:11 -04:00
Richard Feldman
61593b9972
Merge pull request #1890 from rtfeldman/repl-macos-arm64
...
Fix Roc repl on macOS X.
2021-11-05 07:43:35 -04:00
Oleksii Skidan
c64d5a90eb
Merge branch 'trunk' into repl-macos-arm64
2021-11-05 13:00:05 +02: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
Brian Carroll
80bf91709c
Merge branch 'wasm_string' of github.com:rtfeldman/roc into wasm_string
2021-11-05 08:39:02 +00:00
Brian Carroll
176c03264b
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_string
2021-11-05 08:38:46 +00:00
Brian Carroll
4dcb65cc46
Fix data count section for the case where data section is empty
2021-11-05 08:36:18 +00:00
Brendan Hansknecht
492a2ca70e
Update testing features
2021-11-04 23:27:07 -07:00
Brendan Hansknecht
e874654ad1
re-add dev dependency on build for testing
2021-11-04 22:45:10 -07: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
606c33413b
Merge branch 'trunk' into cleanup-targets
2021-11-04 21:51:02 -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
Richard Feldman
18228ec39f
Merge pull request #1885 from rtfeldman/tags-invalid-alignment
...
fix invalid alignment in tags
2021-11-04 19:32:26 -04:00
Brian Carroll
ac6b852b18
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_string
2021-11-04 23:25:53 +00:00
Brian Carroll
6dff4ca2cc
Merge branch 'trunk' into wasm_string
2021-11-04 23:25:29 +00:00
Brian Carroll
c5d99433f7
Fix build error
...
And slightly improve efficiency by exiting early from an iteration
2021-11-04 23:21:48 +00:00
Folkert de Vries
45355f7581
Merge pull request #1888 from rtfeldman/wasm_more_num_tests
...
Enable some more wasm_num tests that are working
2021-11-04 22:42:49 +01:00
Brian Carroll
09f2ce327c
Change some comments after self-review
2021-11-04 21:19:23 +00:00
Oleksii Skidan
ae25b800bb
Force ld to add information about the target platform.
2021-11-04 23:11:27 +02:00
Folkert de Vries
d723ef5e7c
Merge branch 'trunk' into wasm_more_num_tests
2021-11-04 22:09:57 +01:00
Brian Carroll
0d1946a782
Don't generate a DataSection unless we actually need it!
2021-11-04 20:50:32 +00:00
Brian Carroll
c798c9d444
Implement long string literals
2021-11-04 20:44:29 +00:00
Brian Carroll
414c9e6f86
Move WasmModule initialisation into WasmBackend
...
It helps to coordinate different sections with related values,
based on knowledge of Roc rather than Wasm.
2021-11-04 20:41:23 +00:00
Brian Carroll
1b91fd9533
Get rid of some overcomplicated Data section stuff
...
Currently a Wasm module can only have one memory
The Data Segment spec allows for more in future
But the format is confusing enough already without that!
Let's just get rid of that complexity, we don't need it.
2021-11-04 19:44:10 +00:00
Brian Carroll
c57d99c1ac
Create types for DataSection
2021-11-04 18:58:17 +00:00
Brian Carroll
21988b5fd6
More rigorous test of zeroing-out small string
2021-11-04 17:31:14 +00:00
Brian Carroll
46c19b59d4
Add support for small string literals
2021-11-04 14:29:46 +00:00
Brian Carroll
2f430fce86
Refactor literals
2021-11-04 13:40:34 +00:00
Brian Carroll
9111f3cf6c
Add wasm_str tests
2021-11-04 08:08:45 +00:00
Brian Carroll
0166bb1bbd
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_more_num_tests
2021-11-04 07:55:19 +00:00
Brian Carroll
d36ac73d46
Enable some more wasm_num tests that are working
2021-11-04 07:53:47 +00:00
Luiz Carlos L. G. de Oliveira
0c0a92814c
Merge pull request #1851 from rtfeldman/Change--arch-flag-to--A-when-calling-ld
...
Change --arch flag to -A when calling ld
2021-11-04 00:12:07 -03: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
Richard Feldman
ff48abdd06
Refactor NonRecursive to use flat_map and match
2021-11-03 19:44:35 -04:00
Richard Feldman
697134cc8c
Merge pull request #1882 from rtfeldman/partialproc-by-reference
...
Partialproc optimizations
2021-11-03 19:12:55 -04:00
Richard Feldman
3ee957ca49
Merge pull request #1886 from rtfeldman/hello-swift-return-value
...
Explicitly return from `main` in Swift host
2021-11-03 15:07:45 -04:00
Kevin Sjöberg
fa8f0bfae2
Ensure we return 0 in main
2021-11-03 19:45:43 +01:00
Folkert
83c47ea6ae
Merge remote-tracking branch 'origin/trunk' into tags-invalid-alignment
2021-11-03 18:21:16 +01:00
Folkert
aa9bf6bdff
fix alignment problem
2021-11-03 18:21:07 +01:00
Brian Carroll
e4e8e75f0b
Merge pull request #1881 from rtfeldman/wasm_module_builder
...
Replace parity-wasm with our own Wasm module
2021-11-03 16:58:05 +00:00
Folkert de Vries
71ddbc5513
Merge branch 'trunk' into wasm_module_builder
2021-11-03 16:10:59 +01:00
Richard Feldman
516db4dafd
Merge pull request #1884 from rtfeldman/shritesh/readme-swift
...
README: Swift is a first-class platform language
2021-11-03 10:52:35 -04:00
Shritesh Bhattarai
34ad3077fd
README: Swift is a first-class platform language
2021-11-03 10:50:28 -04:00
Folkert de Vries
ff485a4dcd
Merge branch 'trunk' into wasm_module_builder
2021-11-03 15:48:49 +01:00