-
Notifications
You must be signed in to change notification settings - Fork 15
build: don't force a specific compiler/version #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,14 +114,12 @@ fn main() { | |
let mut build = cc::Build::new(); | ||
build | ||
.file("./deps/ada.cpp") | ||
.include("./deps/ada.h") | ||
.include("./deps/ada_c.h") | ||
.include("./deps") | ||
.cpp(true) | ||
.std("c++17"); | ||
|
||
let compile_target_arch = env::var("CARGO_CFG_TARGET_ARCH").expect("CARGO_CFG_TARGET_ARCH"); | ||
let compile_target_os = env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS"); | ||
let compile_target_env = env::var("CARGO_CFG_TARGET_ENV").expect("CARGO_CFG_TARGET_ENV"); | ||
let compile_target_feature = env::var("CARGO_CFG_TARGET_FEATURE"); | ||
// Except for Emscripten target (which emulates POSIX environment), compile to Wasm via WASI SDK | ||
// which is currently the only standalone provider of stdlib for compilation of C/C++ libraries. | ||
|
@@ -175,8 +173,6 @@ fn main() { | |
println!("cargo:rustc-link-lib=c"); | ||
build.file("./deps/wasi_to_unknown.cpp"); | ||
} | ||
} else if !(compile_target_os == "windows" && compile_target_env == "msvc") { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it possible to add a GitHub workflow to ensure your case never gets broken? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean adding an ubuntu+gcc variant to the matrix? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I could do that (i.e. by passing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @steveklabnik wdyt? |
||
build.compiler("clang++"); | ||
} | ||
|
||
let compiler = build.get_compiler(); | ||
|
Uh oh!
There was an error while loading. Please reload this page.