File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1979,6 +1979,9 @@ impl Build {
1979
1979
} else if target. contains ( "freebsd" ) && arch. starts_with ( "64" ) {
1980
1980
cmd. args . push ( ( "-march=rv64gc" ) . into ( ) ) ;
1981
1981
cmd. args . push ( "-mabi=lp64d" . into ( ) ) ;
1982
+ } else if target. contains ( "netbsd" ) && arch. starts_with ( "64" ) {
1983
+ cmd. args . push ( ( "-march=rv64gc" ) . into ( ) ) ;
1984
+ cmd. args . push ( "-mabi=lp64d" . into ( ) ) ;
1982
1985
} else if target. contains ( "openbsd" ) && arch. starts_with ( "64" ) {
1983
1986
cmd. args . push ( ( "-march=rv64gc" ) . into ( ) ) ;
1984
1987
cmd. args . push ( "-mabi=lp64d" . into ( ) ) ;
@@ -2992,6 +2995,7 @@ impl Build {
2992
2995
"riscv32gc-unknown-linux-gnu" => Some ( "riscv32-linux-gnu" ) ,
2993
2996
"riscv64gc-unknown-linux-musl" => Some ( "riscv64-linux-musl" ) ,
2994
2997
"riscv32gc-unknown-linux-musl" => Some ( "riscv32-linux-musl" ) ,
2998
+ "riscv64gc-unknown-netbsd" => Some ( "riscv64--netbsd" ) ,
2995
2999
"s390x-unknown-linux-gnu" => Some ( "s390x-linux-gnu" ) ,
2996
3000
"sparc-unknown-linux-gnu" => Some ( "sparc-linux-gnu" ) ,
2997
3001
"sparc64-unknown-linux-gnu" => Some ( "sparc64-linux-gnu" ) ,
You can’t perform that action at this time.
0 commit comments