Skip to content

Commit 1eb0374

Browse files
authored
Merge pull request #2 from vasiltop/cross-platform
feat: use llvm object file generation
2 parents 01bccf5 + e7a4716 commit 1eb0374

11 files changed

Lines changed: 638 additions & 518 deletions

File tree

.bazelrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
build --cxxopt=/std:c++20
2-
build --host_cxxopt=/std:c++20
1+
build:linux --cxxopt=-std=c++20
2+
build:linux --host_cxxopt=-std=c++20
3+
4+
build:windows --cxxopt=/std:c++20
5+
build:windows --host_cxxopt=/std:c++20

.github/workflows/std-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: std-release
22

33
on:
44
push:
5+
branches:
6+
- main
57
paths:
68
- 'std/**'
79
workflow_dispatch:

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ out.ll
55
a.out
66
todo
77
/bazel-*
8-
.vs
8+
.vs
9+
out.o
10+
out

examples/memory.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ main :: () i32 {
1010
let other: ^Test = &test;
1111

1212
let new: Test = ^other;
13-
io:print("%d\n", new.a);
13+
io:print("%d\n", (^other).a);
1414
return 0;
1515
}

examples/structs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "entry"
2-
import "std:io"
2+
import "../std/io.jl"
33

44
Other :: struct {
55
b: [i32; 2]

out

14.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)