Commit graph

2701 commits

Author SHA1 Message Date
Folkert
b881af47cb
first surgical link on PEs 2022-09-19 10:43:37 +02:00
dependabot[bot]
b5da9ce06a
Bump js-sys from 0.3.59 to 0.3.60
Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen) from 0.3.59 to 0.3.60.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: js-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-19 05:26:38 +00:00
Folkert
841c478b98
update the length of imports in the data directory after removing our dummy dll 2022-09-18 17:23:50 +02:00
Brian Carroll
e9e8904d10
Merge pull request #4057 from roc-lang/dll-export-asserts
dll export asserts
2022-09-18 14:49:31 +01:00
Folkert
6005ed0664
add test that combines a zig platform with a dll 2022-09-18 14:11:46 +02:00
Folkert
61366f0d43
add test for preprocessing on a zig host 2022-09-18 13:42:21 +02:00
Brian Hicks
43978a419c
Merge pull request #3960 from BrianHicks/repr-for-dict 2022-09-17 21:37:04 -05:00
Folkert
daa7e72a2f
clarify comment 2022-09-18 01:00:36 +02:00
Folkert
270949aa07
Revert "add test for preprocessing on a zig host"
This reverts commit 5ee12aeb7d.
2022-09-18 00:58:34 +02:00
Folkert
5ee12aeb7d
add test for preprocessing on a zig host 2022-09-18 00:58:27 +02:00
Folkert
4f51f18a08
remove a constant, add an assert 2022-09-18 00:32:55 +02:00
Folkert
c7bb2672a9
fix typo 2022-09-17 14:44:37 +02:00
Folkert
92514a1499
custom logic around finding 'forward' exports 2022-09-17 14:42:36 +02:00
Folkert
0da6484618
add some asserts about addresses in the dummy dll generation 2022-09-17 14:37:10 +02:00
Folkert de Vries
6a9a1330b6
Merge pull request #4035 from roc-lang/windows-linker-preprocess-exe
windows linker preprocess exe
2022-09-17 12:10:57 +02:00
Brian Carroll
b0c4f74109
Add some extra context clues to a name and a comment 2022-09-17 07:44:41 +01:00
Folkert de Vries
d9217caae5
Merge pull request #4048 from roc-lang/JanCVanB-patch-1
Fix/update path
2022-09-16 23:29:50 +02:00
Ayaz Hafiz
ac752adc7c
Check in some more work 2022-09-16 16:09:21 -05:00
Ayaz Hafiz
6adb88beee
Report uninhabited branches as redundant 2022-09-16 15:55:46 -05:00
Ayaz Hafiz
0d98abae7b
Clippy 2022-09-16 15:39:09 -05:00
Ayaz Hafiz
1d7aef8c96
Don't include uninhabited constructors in exhaustiveness checking 2022-09-16 15:36:54 -05:00
Folkert
bdec61d5bb
fix bug in expect serialization of lambda sets 2022-09-16 22:19:55 +02:00
Ayaz Hafiz
d2cc1041aa
Unused import 2022-09-16 10:25:31 -05:00
Ayaz Hafiz
a81d4d4be2
Allow any numeric range to become a float
Currently things like `1 / 200` lead to a miscompilation because we type
`200` (and as a result, both `1` and the division result) as a ranged
number with width >= U8. During mono that forces the number to become an
`I64` because our logic was that a ranged number can only become a float
if it's at least as wide as an I8. But this is incorrect; as long as the
type is wrapped in `Frac` constructor and it's a ranged number (and not
a ranged int), it should become a fractional type.

```
» 1 / 200

0.005 : Float *
```

Closes #4047
2022-09-16 10:05:43 -05:00
Jan Van Bruggen
063464cb12
Fix/update path
I don't know if this file moved, but this is where it is now.

Signed-off-by: Jan Van Bruggen <JanCVanB@users.noreply.github.com>
2022-09-15 23:29:33 -06:00
Folkert
c00e458bad
refactor 2022-09-15 20:06:07 +02:00
Brian Hicks
6236be9416
fix formatting 2022-09-15 12:53:17 -05:00
Folkert
bad715e18a
add some objdump snippets to make clearer what is happening 2022-09-15 19:37:28 +02:00
Folkert
132ea07191
refactor out a constant 2022-09-15 19:37:12 +02:00
Ayaz Hafiz
8cd4281173
Complex bitcast recursive tag union pointers when we need them to be opaque
Resolves a discussion on Zulip: https://roc.zulipchat.com/#narrow/stream/231635-compiler-development/topic/When.20recursive.20structs.20aren't.20recursive
2022-09-14 20:58:54 -05:00
Folkert de Vries
4b0342ef34
Merge pull request #4039 from roc-lang/fix-expect-oom
Copy list values from the correct offset when reporting expects
2022-09-14 22:51:57 +02:00
Brian Hicks
335a8372c5
implement Drop for RocDictItem 2022-09-14 15:39:46 -05:00
Brian Hicks
98a8cc02e6
follow Roc's layout rules for RocDictItem 2022-09-14 15:36:54 -05:00
Ayaz Hafiz
fa700259aa
Clippy 2022-09-14 14:53:00 -05:00
Ayaz Hafiz
c4a3a8bd31
Copy list values from the correct offset when reporting expects
Co-authored-by: Folkert de Vries <folkert@folkertdev.nl>
2022-09-14 14:28:56 -05:00
Folkert de Vries
c218543408
Merge pull request #4033 from roc-lang/i4028
Span body of last branch in exhaustiveness checking
2022-09-14 21:24:23 +02:00
Folkert
1b74dec8ac
remove test 2022-09-14 21:19:39 +02:00
Folkert
cead509255
comment out test 2022-09-14 21:19:25 +02:00
Ayaz Hafiz
c9e73b6761
Change example to be a calculator 2022-09-14 12:06:35 -05:00
Folkert
d8c0c176d8
comment 2022-09-14 18:31:27 +02:00
Ayaz Hafiz
e39fccb0fa
Add cli run test 2022-09-14 11:26:52 -05:00
Ayaz Hafiz
6a83babaf3
Don't write extra newline if it's already there 2022-09-14 11:26:52 -05:00
Ayaz Hafiz
44772b8f3d
Don't add to host exposed during roc test 2022-09-14 11:26:50 -05:00
Ayaz Hafiz
0c2b0b1bcc
Unwrap recursion var 2022-09-14 11:26:49 -05:00
Ayaz Hafiz
31b894d027
Remove region when normalizing expects 2022-09-14 11:26:48 -05:00
Ayaz Hafiz
274f40e4e1
Print on unreachable 2022-09-14 11:26:47 -05:00
Ayaz Hafiz
a8282f36c3
Handle values that are functions in expects 2022-09-14 11:26:46 -05:00
Folkert
2e8952d8a7
windows PE preprocessing of the .exe 2022-09-14 18:02:01 +02:00
Richard Feldman
21f3d4b8bc
Merge pull request #3990 from roc-lang/pass-args-to-cli
Pass args from cli platform to app
2022-09-14 08:43:13 -07:00
Anton-4
f1e799c6da
removed debug stuff, legacy linker for args test 2022-09-14 16:25:24 +02:00