@@ -324,7 +324,6 @@ fn main() {
324
324
( "linux" , _) => {
325
325
println ! ( "cargo:rustc-link-search=native={search_dir_str}" ) ;
326
326
println ! ( "cargo:rustc-link-lib={lib_kind}={lib_name}" ) ;
327
- println ! ( "cargo:rustc-link-lib=dylib=stdc++" ) ;
328
327
return ;
329
328
}
330
329
( "windows" , "msvc" ) => {
@@ -337,21 +336,18 @@ fn main() {
337
336
println ! ( "cargo:warning=shaderc: Windows MinGW static build is experimental" ) ;
338
337
println ! ( "cargo:rustc-link-search=native={search_dir_str}" ) ;
339
338
println ! ( "cargo:rustc-link-lib={lib_kind}={lib_name}" ) ;
340
- println ! ( "cargo:rustc-link-lib=dylib=stdc++" ) ;
341
339
return ;
342
340
}
343
341
( "macos" , _) => {
344
342
println ! ( "cargo:warning=shaderc: macOS static build is experimental" ) ;
345
343
println ! ( "cargo:rustc-link-search=native={search_dir_str}" ) ;
346
344
println ! ( "cargo:rustc-link-lib={lib_kind}={lib_name}" ) ;
347
- println ! ( "cargo:rustc-link-lib=dylib=c++" ) ;
348
345
return ;
349
346
}
350
347
( "ios" , _) => {
351
348
println ! ( "cargo:warning=shaderc: macOS static build is experimental" ) ;
352
349
println ! ( "cargo:rustc-link-search=native={search_dir_str}" ) ;
353
350
println ! ( "cargo:rustc-link-lib={lib_kind}={lib_name}" ) ;
354
- println ! ( "cargo:rustc-link-lib=dylib=c++" ) ;
355
351
return ;
356
352
}
357
353
( _, _) => {
@@ -398,17 +394,4 @@ fn main() {
398
394
lib_path. push ( "lib" ) ;
399
395
println ! ( "cargo:rustc-link-search=native={}" , lib_path. display( ) ) ;
400
396
println ! ( "cargo:rustc-link-lib=static={SHADERC_STATIC_LIB}" ) ;
401
-
402
- emit_std_cpp_link ( ) ;
403
- }
404
-
405
- fn emit_std_cpp_link ( ) {
406
- let target_os = env:: var ( "CARGO_CFG_TARGET_OS" ) . unwrap ( ) ;
407
- let target_env = env:: var ( "CARGO_CFG_TARGET_ENV" ) . unwrap ( ) ;
408
-
409
- match ( target_os. as_str ( ) , target_env. as_str ( ) ) {
410
- ( "linux" , _) | ( "windows" , "gnu" ) => println ! ( "cargo:rustc-link-lib=dylib=stdc++" ) ,
411
- ( "macos" , _) => println ! ( "cargo:rustc-link-lib=dylib=c++" ) ,
412
- _ => { }
413
- }
414
397
}
0 commit comments