The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Detect but ignore -fdebug-prefix-map on mingw-w64

mingw-w64 is based on GCC, so supports -fdebug-prefix-map, but the test
for it is skipped in configure. The test is no longer skipped (which
means that Config.c_has_debug_prefix_map returns true) but the flag is
still explicitly not used by the compilers (as before).

+7 -4
-2
configure
··· 21459 21459 21460 21460 ## -fdebug-prefix-map support by the C compiler 21461 21461 case $ocaml_cc_vendor,$target in #( 21462 - *,*-w64-mingw32*) : 21463 - cc_has_debug_prefix_map=false ;; #( 21464 21462 *,*-pc-windows) : 21465 21463 cc_has_debug_prefix_map=false ;; #( 21466 21464 xlc*,powerpc-ibm-aix*) :
-1
configure.ac
··· 2470 2470 2471 2471 ## -fdebug-prefix-map support by the C compiler 2472 2472 AS_CASE([$ocaml_cc_vendor,$target], 2473 - [*,*-w64-mingw32*], [cc_has_debug_prefix_map=false], 2474 2473 [*,*-pc-windows], [cc_has_debug_prefix_map=false], 2475 2474 [xlc*,powerpc-ibm-aix*], [cc_has_debug_prefix_map=false], 2476 2475 [sunc*,sparc-sun-*], [cc_has_debug_prefix_map=false],
+7 -1
utils/ccomp.ml
··· 90 90 ("", "") in 91 91 let debug_prefix_map = 92 92 match stable_name with 93 - | Some stable when Config.c_has_debug_prefix_map -> 93 + | Some stable 94 + when Config.c_has_debug_prefix_map 95 + && not (String.starts_with ~prefix:"mingw" Config.system) -> 96 + (* -fdebug-prefix-map exists on mingw-w64 but at present it is not used 97 + for BUILD_PATH_PREFIX_MAP because there isn't yet a good story for how 98 + to deal with Cygwin, where the paths are Cygwin-style paths and MSYS2, 99 + where they are native Windows paths. *) 94 100 Printf.sprintf " -fdebug-prefix-map=%s=%s" name stable 95 101 | Some _ | None -> "" in 96 102 let exit =