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 @@ -380,7 +380,9 @@ endforeach
380
380
# https://github.com/numpy/numpy/blob/eead09a3d02c09374942cdc787c0b5e4fe9e7472/numpy/core/setup_common.py#L264-L434
381
381
# This port is in service of solving gh-23972
382
382
# as well as https://github.com/mesonbuild/meson/issues/11068
383
- longdouble_format = meson .get_compiler(' c' ).run(
383
+ longdouble_format = meson .get_external_property(' longdouble_format' , ' UNKNOWN' )
384
+ if longdouble_format == ' UNKNOWN'
385
+ longdouble_format = meson .get_compiler(' c' ).run(
384
386
'''
385
387
#include <stdio.h>
386
388
#include <string.h>
@@ -459,7 +461,8 @@ int main(void) {
459
461
}
460
462
}
461
463
}
462
- ''' ).stdout()
464
+ ''' ).stdout()
465
+ endif
463
466
if longdouble_format == ' UNKNOWN' or longdouble_format == ' UNDEFINED'
464
467
error (' Unknown long double format of size: ' + cc.sizeof(' long double' ).to_string())
465
468
endif
29F8
svg>
You can’t perform that action at this time.
0 commit comments