Skip to content

Commit

Permalink
Fix issue due to reverting of Ocamlc_config changes
Browse files Browse the repository at this point in the history
Signed-off-by: Ulysse Gérard <[email protected]>
  • Loading branch information
voodoos committed Dec 3, 2020
1 parent 3598cf5 commit 5746ebd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/dune_rules/cxx_flags.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
open! Stdune
open Dune_engine
open Ocaml_config.Ccomp_type

type ccomp_type =
| Gcc
| Msvc
| Clang
| Other of string

let base_cxx_flags =
[ (Gcc, [ "-x"; "c++"; "-lstdc++"; "-shared-libgcc" ])
Expand All @@ -17,7 +22,7 @@ let ccomp_type dir =
in
let+ ccomp = Build.contents (Path.build filepath) in
match String.trim ccomp with
| "clang" -> Ocaml_config.Ccomp_type.Clang
| "clang" -> Clang
| "gcc"
| "mingw" ->
Gcc
Expand Down

0 comments on commit 5746ebd

Please sign in to comment.