Skip to content

Commit

Permalink
feat: Support detect-aot feature (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyr authored Aug 10, 2022
1 parent a92ad61 commit bcd91b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ asm = []
# Detect if requirements are met, and enable asm feature when we can.
detect-asm = []
aot = ["asm"]
# Detect if requirements are met, and enable aot feature when we can.
detect-aot = ["detect-asm"]
enable-chaos-mode-by-default = ["ckb-vm-definitions/enable-chaos-mode-by-default"]
# Disable slow tests to run miri on CI
miri-ci = []
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn main() {
use std::path::Path;
use std::process::Command;

let enable_aot = cfg!(feature = "aot");
let enable_aot = cfg!(any(feature = "aot", feature = "detect-aot")) && can_enable_aot;

fn run_command(mut c: Command) {
println!("Running Command[{:?}]", c);
Expand Down

0 comments on commit bcd91b9

Please sign in to comment.