File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,11 +198,11 @@ if [ -n "${autodetect_compiler_CC:-}" ]; then
198
198
autodetect_compiler_CFLAGS=$( printf " %s" " $autodetect_compiler_CFLAGS " | PATH=/usr/bin:/bin sed ' s/ -Os / /g' )
199
199
fi
200
200
201
- # -Z7 is an option that should be in CC for OCaml
201
+ # /Z7 or normalized -Z7 is an option that should be in CC for OCaml
202
202
# Confer: https://learn.microsoft.com/en-us/cpp/build/reference/z7-zi-zi-debug-information-format?view=msvc-170
203
- if printf " %s" " ${autodetect_compiler_CFLAGS:- } " | PATH=/usr/bin:/bin grep -q ' - Z7 ' ; then
203
+ if printf " %s" " ${autodetect_compiler_CFLAGS:- } " | PATH=/usr/bin:/bin grep -q ' [/-] Z7 ' ; then
204
204
autodetect_compiler_CC=" $autodetect_compiler_CC -Z7"
205
- autodetect_compiler_CFLAGS=$( printf " %s" " $autodetect_compiler_CFLAGS " | PATH=/usr/bin:/bin sed ' s/ - Z7 / /g' )
205
+ autodetect_compiler_CFLAGS=$( printf " %s" " $autodetect_compiler_CFLAGS " | PATH=/usr/bin:/bin sed ' s/ [/-] Z7 / /g' )
206
206
fi
207
207
208
208
# -mmacosx-version-min=MM.NN needs to be in CC for OCaml
You can’t perform that action at this time.
0 commit comments