File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,16 @@ fn cc2ar(cc: &Path, target: TargetSelection) -> Option<PathBuf> {
44
44
Some ( PathBuf :: from ( "ar" ) )
45
45
} else if target. contains ( "vxworks" ) {
46
46
Some ( PathBuf :: from ( "wr-ar" ) )
47
+ } else if target. contains ( "-nto-" ) {
48
+ if target. starts_with ( "i586" ) {
49
+ Some ( PathBuf :: from ( "ntox86-ar" ) )
50
+ } else if target. starts_with ( "aarch64" ) {
51
+ Some ( PathBuf :: from ( "ntoaarch64-ar" ) )
52
+ } else if target. starts_with ( "x86_64" ) {
53
+ Some ( PathBuf :: from ( "ntox86_64-ar" ) )
54
+ } else {
55
+ panic ! ( "Unknown architecture, cannot determine archiver for Neutrino QNX" ) ;
56
+ }
47
57
} else if target. contains ( "android" ) || target. contains ( "-wasi" ) {
48
58
Some ( cc. parent ( ) . unwrap ( ) . join ( PathBuf :: from ( "llvm-ar" ) ) )
49
59
} else {
You can’t perform that action at this time.
0 commit comments