Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] build: replace -WError with -WAll under Mac plateform

  • Loading branch information...
commit 2a049ca9267671125de2631fb0511f1e05a59cdf 1 parent 570a16a
@Aqua-Ye Aqua-Ye authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 build/myocamlbuild_prefix.ml
View
5 build/myocamlbuild_prefix.ml
@@ -35,7 +35,10 @@ let sed = if is_mac then P"gsed" else P"sed"
let windows_mode = (os = Win32)
-let c_wall,c_werror = if windows_mode (*&& compiler=microsoft*) then "/Wall","/Wall" else "-Wall","-Werror"
+let c_wall,c_werror =
+ if windows_mode (*&& compiler=microsoft*) then "/Wall","/Wall"
+ else if is_mac then "-Wall","-Wall"
+ else "-Wall","-Werror"
let winocamldir = Pathname.pwd / "ms_windows"
Please sign in to comment.
Something went wrong with that request. Please try again.