Skip to content
Browse files

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

  • Loading branch information...
1 parent 570a16a commit 2a049ca9267671125de2631fb0511f1e05a59cdf @Aqua-Ye Aqua-Ye committed Aug 9, 2011
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"

0 comments on commit 2a049ca

Please sign in to comment.
Something went wrong with that request. Please try again.