File tree 1 file changed +2
-13
lines changed
1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -145,17 +145,9 @@ fn main() {
145
145
println ! ( "cargo:rustc-link-lib={}={}" , kind, & stem[ 3 ..] ) ;
146
146
return ;
147
147
}
148
- // Disable -Wextra warnings - jemalloc doesn't compile free of warnings with
149
- // it enabled: https://github.com/jemalloc/jemalloc/issues/1196
150
- let compiler = cc:: Build :: new ( ) . extra_warnings ( false ) . get_compiler ( ) ;
151
- let cflags = compiler
152
- . args ( )
153
- . iter ( )
154
- . map ( |s| s. to_str ( ) . unwrap ( ) )
155
- . collect :: < Vec < _ > > ( )
156
- . join ( " " ) ;
148
+
149
+ let compiler = cc:: Build :: new ( ) . get_compiler ( ) ;
157
150
info ! ( "CC={:?}" , compiler. path( ) ) ;
158
- info ! ( "CFLAGS={:?}" , cflags) ;
159
151
160
152
assert ! ( out_dir. exists( ) , "OUT_DIR does not exist" ) ;
161
153
let jemalloc_repo_dir = PathBuf :: from ( "jemalloc" ) ;
@@ -190,9 +182,6 @@ fn main() {
190
182
)
191
183
. current_dir ( & build_dir)
192
184
. env ( "CC" , compiler. path ( ) )
193
- . env ( "CFLAGS" , cflags. clone ( ) )
194
- . env ( "LDFLAGS" , cflags. clone ( ) )
195
- . env ( "CPPFLAGS" , cflags)
196
185
. arg ( format ! ( "--with-version={je_version}" ) )
197
186
. arg ( "--disable-cxx" )
198
187
. arg ( "--enable-doc=no" )
You can’t perform that action at this time.
0 commit comments