File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,9 @@ endforeach
377
377
# https://github.com/numpy/numpy/blob/eead09a3d02c09374942cdc787c0b5e4fe9e7472/numpy/core/setup_common.py#L264-L434
378
378
# This port is in service of solving gh-23972
379
379
# as well as https://github.com/mesonbuild/meson/issues/11068
380
- longdouble_format = meson .get_compiler(' c' ).run(
380
+ longdouble_format = meson .get_external_property(' longdouble_format' , ' UNKNOWN' )
381
+ if longdouble_format == ' UNKNOWN'
382
+ longdouble_format = meson .get_compiler(' c' ).run(
381
383
'''
382
384
#include <stdio.h>
383
385
#include <string.h>
@@ -456,7 +458,8 @@ int main(void) {
456
458
}
457
459
}
458
460
}
459
- ''' ).stdout()
461
+ ''' ).stdout()
462
+ endif
460
463
if longdouble_format == ' UNKNOWN' or longdouble_format == ' UNDEFINED'
461
464
error (' Unknown long double format of size: ' + cc.sizeof(' long double' ).to_string())
462
465
endif
You can’t perform that action at this time.
0 commit comments