Skip to content

Commit

Permalink
Add support for linux x32
Browse files Browse the repository at this point in the history
  • Loading branch information
malbarbo committed Oct 18, 2017
1 parent af85510 commit 8739c4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Automated tests of FFI bindings.

[dependencies]
syntex_syntax = "0.59.1"
cc = "1.0"
cc = "1.0.1"

[workspace]
members = ["testcrate"]
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,11 @@ impl TestGenerator {
fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
let mut ret = Vec::new();
let (arch, width) = if target.starts_with("x86_64") {
("x86_64", "64")
if target.ends_with("x32") {
("x86_64", "32")
} else {
("x86_64", "64")
}
} else if target.starts_with("i386") ||
target.starts_with("i586") ||
target.starts_with("i686") {
Expand Down

0 comments on commit 8739c4b

Please sign in to comment.