File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,14 @@ fn build_jsglue() {
122
122
build. flag_if_supported ( flag) ;
123
123
}
124
124
125
+ let config = format ! ( "{}/js/src/js-confdefs.h" , out. display( ) ) ;
126
+ if cfg ! ( windows) {
127
+ build. flag ( "-FI" ) ;
128
+ } else {
129
+ build. flag ( "-include" ) ;
130
+ }
131
+ build. flag ( & config) ;
132
+
125
133
build. file ( "src/jsglue.cpp" ) ;
126
134
build. include ( out. join ( "dist/include" ) ) ;
127
135
build. compile ( "jsglue" ) ;
@@ -169,6 +177,9 @@ fn build_jsapi_bindings() {
169
177
builder = builder. clang_arg ( flag) ;
170
178
}
171
179
180
+ builder = builder. clang_arg ( "-include" ) ;
181
+ builder = builder. clang_arg ( out. join ( "js/src/js-confdefs.h" ) . to_str ( ) . expect ( "UTF-8" ) ) ;
182
+
172
183
println ! ( "Generting bindings {:?}." , builder. command_line_flags( ) ) ;
173
184
174
185
for ty in UNSAFE_IMPL_SYNC_TYPES {
You can’t perform that action at this time.
0 commit comments