Skip to content

Commit

Permalink
feat: Start lccc-autobuild
Browse files Browse the repository at this point in the history
  • Loading branch information
chorman0773 committed Sep 1, 2023
1 parent 334efc0 commit ff39127
Show file tree
Hide file tree
Showing 11 changed files with 581 additions and 10 deletions.
8 changes: 7 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[alias]
autobuild = ["run", "--package","autobuild","--release","--"]
configure = "autobuild configure"
build-lccc = "autobuild build"
run-lccc = "run --bin lccc -- --intree"
run-lccc-release = "run --release --bin lccc -- --intree"
run-lccc-release = "run --release --bin lccc -- --intree"

[env]
AUTOBUILD_DIR={relative=true, value="autobuild"}
114 changes: 112 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
members = [
"autobuild",
"xlang",
"xlang/xlang_abi", "xlang/xlang_abi_macro",
"xlang/xlang_struct", "xlang/xlang_targets",
Expand Down
40 changes: 33 additions & 7 deletions autobuild.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
[package]
name = "lccc"
version = "0.1"

[dirs]
lcccdir = "$libdir/lccc"
xlangdir = "$lcccdir/xlang"
sysrootdir = "$lcccdir/sysroot"
lcccdir = "{libdir}/lccc"
xlangdir = "{lcccdir}/xlang"
sysrootdir = "{lcccdir}/sysroot"
libsrcdir = "{lcccdir}/libsrc"

[programs.RUSTC]
type = "rustc"
target = "$host"
type="rustc"
target="{host}"

[programs.RUSTC_FOR_BUILD]
type = "rustc"
target = "$build"
type="rustc"
target="{build}"


[target.groups.frontends]
members=["rust","c"]

[target.groups.backends]
path-specifier="codegen-{}"
members=["clever","x86","w65"]

[target.xlang]
subdir="xlang"

[target.lccc]
subdir="lccc"


[stages.host]
build=["xlang","frontends","backends","lccc"]


[stages]
order=["host"]
Loading

0 comments on commit ff39127

Please sign in to comment.