File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -974,6 +974,7 @@ fn build_compiler(opencv: &Library) -> cc::Build {
974
974
. flag_if_supported ( "-wd4190" ) // has C-linkage specified, but returns UDT 'Result<cv::Rect_<int>>' which is incompatible with C
975
975
. flag_if_supported ( "-EHsc" )
976
976
. flag_if_supported ( "-bigobj" )
977
+ . pic ( false )
977
978
;
978
979
} else {
979
980
out. flag ( "-std=c++11" )
Original file line number Diff line number Diff line change @@ -60,10 +60,7 @@ cargo test --release -vv --no-default-features --features "$CARGO_FEATURES"
60
60
61
61
cargo test --release -vv --no-default-features --features " $CARGO_FEATURES ,clang-runtime"
62
62
63
- # on windows clang through `cc` crate fails because of -fPIC flag
64
- if [[ " $OS_FAMILY " != " windows" ]]; then
65
- export CXX=clang++
66
- touch build.rs
67
- cargo test -vv --no-default-features --features " $CARGO_FEATURES "
68
- cargo test --release -vv --no-default-features --features " $CARGO_FEATURES "
69
- fi
63
+ export CXX=clang++
64
+ touch build.rs
65
+ cargo test -vv --no-default-features --features " $CARGO_FEATURES "
66
+ cargo test --release -vv --no-default-features --features " $CARGO_FEATURES "
You can’t perform that action at this time.
0 commit comments