File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1720,10 +1720,13 @@ impl Build {
1720
1720
} else if target. contains ( "aarch64" ) {
1721
1721
cmd. args . push ( "--target=aarch64-unknown-windows-gnu" . into ( ) )
1722
1722
}
1723
- } else if target. ends_with ( "-freebsd" ) && self . get_host ( ) ?. eq ( target) {
1723
+ } else if target. ends_with ( "-freebsd" ) && self . get_host ( ) ?. ends_with ( "-freebsd" )
1724
+ {
1724
1725
// clang <= 13 on FreeBSD doesn't support a target triple without at least
1725
1726
// the major os version number appended; e.g. use x86_64-unknown-freebsd13
1726
1727
// or x86_64-unknown-freebsd13.0 instead of x86_64-unknown-freebsd.
1728
+ // The current version is appended. If it doesn't align with your goals, pass
1729
+ // .flag("--target=...") in the build script or adjust CXXFLAGS accordingly.
1727
1730
let stdout = std:: process:: Command :: new ( "freebsd-version" )
1728
1731
. output ( )
1729
1732
. map_err ( |e| {
You can’t perform that action at this time.
0 commit comments