33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
--- a/configure
|
|
+++ b/configure
|
|
@@ -13704,7 +13704,7 @@
|
|
case $ocaml_cv_cc_vendor in #(
|
|
gcc-[01234]-*) :
|
|
as_fn_error $? "This version of MinGW-w64 GCC is too old. Please use GCC version 5 or above." "$LINENO" 5 ;; #(
|
|
- gcc-*) :
|
|
+ gcc-*|clang-*) :
|
|
internal_cflags="-Wno-unused $cc_warnings \
|
|
-fexcess-precision=standard"
|
|
# TODO: see whether the code can be fixed to avoid -Wno-unused
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -721,7 +721,7 @@
|
|
[gcc-[[01234]]-*],
|
|
[AC_MSG_ERROR(m4_normalize([This version of MinGW-w64 GCC is too old.
|
|
Please use GCC version 5 or above.]))],
|
|
- [gcc-*],
|
|
+ [gcc-*|clang-*],
|
|
[internal_cflags="-Wno-unused $cc_warnings \
|
|
-fexcess-precision=standard"
|
|
# TODO: see whether the code can be fixed to avoid -Wno-unused
|
|
--- a/Makefile.config.in
|
|
+++ b/Makefile.config.in
|
|
@@ -72,7 +72,6 @@
|
|
LIBTOOL = $(TOP_BUILDDIR)/libtool
|
|
|
|
### Which C compiler to use
|
|
-TOOLPREF=@ac_tool_prefix@
|
|
CC=@CC@
|
|
|
|
CC_HAS_DEBUG_PREFIX_MAP=@cc_has_debug_prefix_map@
|