Skip to content

Commit e6e1d1a

Browse files
committed
Build system hotfixes for Windows
1 parent 5b6623e commit e6e1d1a

File tree

1 file changed

+6
-0
lines changed
  • packages/lablgtk3/lablgtk3.3.1.5

1 file changed

+6
-0
lines changed

packages/lablgtk3/lablgtk3.3.1.5/opam

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ depends: [
2424
"ocamlfind" { dev }
2525
"camlp5" { dev }
2626
]
27+
depopts: [
28+
"host-system-msvc"
29+
"host-system-mingw"
30+
]
2731

2832
build: [
33+
[ "sed" "-i" "-e" "/c_flags/s/-Wno-deprecated-declarations//" "src/dune" ] {host-system-msvc:installed}
34+
[ "sed" "-i" "-e" "/c_flags/s/-W/-Wno-error=incompatible-pointer-types -W/" "src/dune" ] {host-system-mingw:installed}
2935
[ "dune" "subst"] {dev}
3036
[ "dune" "build" "-p" name "-j" jobs ]
3137
]

0 commit comments

Comments
 (0)