Skip to content

Commit

Permalink
fixup CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate authored Sep 30, 2024
1 parent fcfab82 commit 168e33e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/dune_rules/cxx_flags.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
open Import

type phase =
| Compile
| Link

type ccomp_type =
| Gcc
| Msvc
Expand All @@ -12,11 +8,9 @@ type ccomp_type =

let base_cxx_compile_flags ocaml_config = function
| Gcc | Clang ->
"-x" :: "c++" ::
if Ocaml_config.version ocaml_config >= (5, 0, 0) then
["-std=c++11"]
else
[]
"-x"
:: "c++"
:: (if Ocaml_config.version ocaml_config >= (5, 0, 0) then [ "-std=c++11" ] else [])
| Msvc -> [ "/TP" ]
| Other _ -> []
;;
Expand Down

0 comments on commit 168e33e

Please sign in to comment.