File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,13 @@ pub fn check(build: &mut Build) {
95
95
// We're gonna build some custom C code here and there, host triples
96
96
// also build some C++ shims for LLVM so we need a C++ compiler.
97
97
for target in build. config . target . iter ( ) {
98
+ // On emscripten we don't actually need the C compiler to just
99
+ // build the target artifacts, only for testing. For the sake
100
+ // of easier bot configuration, just skip detection.
101
+ if target. contains ( "emscripten" ) {
102
+ continue ;
103
+ }
104
+
98
105
need_cmd ( build. cc ( target) . as_ref ( ) ) ;
99
106
if let Some ( ar) = build. ar ( target) {
100
107
need_cmd ( ar. as_ref ( ) ) ;
Original file line number Diff line number Diff line change @@ -73,6 +73,12 @@ impl Sources {
73
73
74
74
fn main ( ) {
75
75
let target = env:: var ( "TARGET" ) . expect ( "TARGET was not set" ) ;
76
+
77
+ // Emscripten's runtime includes all the builtins
78
+ if target. contains ( "emscripten" ) {
79
+ return ;
80
+ }
81
+
76
82
let cfg = & mut gcc:: Config :: new ( ) ;
77
83
78
84
if target. contains ( "msvc" ) {
You can’t perform that action at this time.
0 commit comments