File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,12 @@ fn main() {
114114 let mut build = cc:: Build :: new ( ) ;
115115 build
116116 . file ( "./deps/ada.cpp" )
117- . include ( "./deps/ada.h" )
118- . include ( "./deps/ada_c.h" )
117+ . include ( "./deps" )
119118 . cpp ( true )
120119 . std ( "c++17" ) ;
121120
122121 let compile_target_arch = env:: var ( "CARGO_CFG_TARGET_ARCH" ) . expect ( "CARGO_CFG_TARGET_ARCH" ) ;
123122 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" ) ;
125123 let compile_target_feature = env:: var ( "CARGO_CFG_TARGET_FEATURE" ) ;
126124 // Except for Emscripten target (which emulates POSIX environment), compile to Wasm via WASI SDK
127125 // which is currently the only standalone provider of stdlib for compilation of C/C++ libraries.
@@ -175,8 +173,6 @@ fn main() {
175173 println ! ( "cargo:rustc-link-lib=c" ) ;
176174 build. file ( "./deps/wasi_to_unknown.cpp" ) ;
177175 }
178- } else if !( compile_target_os == "windows" && compile_target_env == "msvc" ) {
179- build. compiler ( "clang++" ) ;
180176 }
181177
182178 let compiler = build. get_compiler ( ) ;
You can’t perform that action at this time.
0 commit comments