File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ pub fn compiler_rt(build: &Build, target: &str) {
115
115
let mode = if build. config . rust_optimize { "Release" } else { "Debug" } ;
116
116
let ( dir, build_target, libname) = if target. contains ( "linux" ) {
117
117
let os = if target. contains ( "android" ) { "-android" } else { "" } ;
118
+ let arch = if arch. starts_with ( "arm" ) && target. contains ( "eabihf" ) {
119
+ "armhf"
120
+ } else {
121
+ arch
122
+ } ;
118
123
let target = format ! ( "clang_rt.builtins-{}{}" , arch, os) ;
119
124
( "linux" . to_string ( ) , target. clone ( ) , target)
120
125
} else if target. contains ( "darwin" ) {
@@ -151,7 +156,10 @@ pub fn compiler_rt(build: &Build, target: &str) {
151
156
. define ( "COMPILER_RT_DEFAULT_TARGET_TRIPLE" , target)
152
157
. define ( "COMPILER_RT_BUILD_SANITIZERS" , "OFF" )
153
158
. define ( "COMPILER_RT_BUILD_EMUTLS" , "OFF" )
159
+ // inform about c/c++ compilers, the c++ compiler isn't actually used but
160
+ // it's needed to get the initial configure to work on all platforms.
154
161
. define ( "CMAKE_C_COMPILER" , build. cc ( target) )
162
+ . define ( "CMAKE_CXX_COMPILER" , build. cc ( target) )
155
163
. build_target ( & build_target) ;
156
164
cfg. build ( ) ;
157
165
}
You can’t perform that action at this time.
0 commit comments