@@ -55,6 +55,7 @@ pub enum CompilationTarget {
55
55
pub enum Architecture {
56
56
X86 ,
57
57
X86_64 ,
58
+ RISCV64 ,
58
59
// There are also a ton of different 32-bit ARM architectures, we'll just pretend they don't
59
60
// exist for now
60
61
AArch64 ,
@@ -590,6 +591,8 @@ fn compilation_target(cross_compile_target: Option<&str>) -> Result<CompilationT
590
591
let architecture = Architecture :: X86_64 ;
591
592
#[ cfg( target_arch = "aarch64" ) ]
592
593
let architecture = Architecture :: AArch64 ;
594
+ #[ cfg( target_arch = "riscv64" ) ]
595
+ let architecture = Architecture :: RISCV64 ;
593
596
594
597
#[ cfg( target_os = "linux" ) ]
595
598
return Ok ( CompilationTarget :: Linux ( architecture) ) ;
@@ -684,6 +687,9 @@ fn vst3_bundle_library_name(package: &str, target: CompilationTarget) -> String
684
687
CompilationTarget :: Linux ( Architecture :: X86_64 ) => {
685
688
format ! ( "{package}.vst3/Contents/x86_64-linux/{package}.so" )
686
689
}
690
+ CompilationTarget :: Linux ( Architecture :: RISCV64 ) => {
691
+ format ! ( "{package}.vst3/Contents/riscv64-linux/{package}.so" )
692
+ }
687
693
CompilationTarget :: Linux ( Architecture :: AArch64 ) => {
688
694
format ! ( "{package}.vst3/Contents/aarch64-linux/{package}.so" )
689
695
}
@@ -699,6 +705,9 @@ fn vst3_bundle_library_name(package: &str, target: CompilationTarget) -> String
699
705
CompilationTarget :: Windows ( Architecture :: AArch64 ) => {
700
706
format ! ( "{package}.vst3/Contents/arm_64-win/{package}.vst3" )
701
707
}
708
+ CompilationTarget :: Windows ( Architecture :: RISCV64 ) => {
709
+ panic ! ( "riscv64 are not supported by windows currently!" )
710
+ }
702
711
}
703
712
}
704
713
0 commit comments