Skip to content

Commit

Permalink
use forked qbe-rs in jyafn
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Arruda committed Jul 30, 2024
1 parent 4a2c2cb commit 23798d4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
16 changes: 11 additions & 5 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions jyafn-ext/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ build:

install:
./run-all.sh install

publish:
cargo publish
2 changes: 1 addition & 1 deletion jyafn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ glob = "0.3.1"
hashbrown = { version = "0.14.3", features = ["serde", "raw"] }
home = "0.5.9"
libloading = "0.8.4"
qbe = { path = "../vendored/qbe-rs" }
jyafn-qbe = { version = "2.1.1" }
rand = "0.8.5"
scopeguard = "1.2.0"
semver = { version = "1.0.23", features = ["serde", "std"] }
Expand Down
2 changes: 2 additions & 0 deletions jyafn/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#[cfg(not(target_pointer_width = "64"))]
compile_error!("Currently `jyafn` only works in 64-bit atchitectures");

extern crate jyafn_qbe as qbe; // vendored

pub mod r#const;
pub mod extension;
pub mod layout;
Expand Down
2 changes: 1 addition & 1 deletion vendored/qbe-rs/examples/hello_world.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use qbe::*;
use jyafn_qbe::*;

// Represents the hello world example from https://c9x.me/compile/

Expand Down

0 comments on commit 23798d4

Please sign in to comment.