File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,12 @@ fn main() {
114
114
let mut build = cc:: Build :: new ( ) ;
115
115
build
116
116
. file ( "./deps/ada.cpp" )
117
- . include ( "./deps/ada.h" )
118
- . include ( "./deps/ada_c.h" )
117
+ . include ( "./deps" )
119
118
. cpp ( true )
120
119
. std ( "c++17" ) ;
121
120
122
121
let compile_target_arch = env:: var ( "CARGO_CFG_TARGET_ARCH" ) . expect ( "CARGO_CFG_TARGET_ARCH" ) ;
123
122
let compile_target_os = env:: var ( "CARGO_CFG_TARGET_OS" ) . expect ( "CARGO_CFG_TARGET_OS" ) ;
124
- let compile_target_env = env:: var ( "CARGO_CFG_TARGET_ENV" ) . expect ( "CARGO_CFG_TARGET_ENV" ) ;
125
123
let compile_target_feature = env:: var ( "CARGO_CFG_TARGET_FEATURE" ) ;
126
124
// Except for Emscripten target (which emulates POSIX environment), compile to Wasm via WASI SDK
127
125
// which is currently the only standalone provider of stdlib for compilation of C/C++ libraries.
@@ -175,8 +173,6 @@ fn main() {
175
173
println ! ( "cargo:rustc-link-lib=c" ) ;
176
174
build. file ( "./deps/wasi_to_unknown.cpp" ) ;
177
175
}
178
- } else if !( compile_target_os == "windows" && compile_target_env == "msvc" ) {
179
- build. compiler ( "clang++" ) ;
180
176
}
181
177
182
178
let compiler = build. get_compiler ( ) ;
You can’t perform that action at this time.
0 commit comments