Skip to content

Commit

Permalink
Fixing mac build: negating Darwin ~~> OKaying linux
Browse files Browse the repository at this point in the history
Signed-off-by: Kakadu <[email protected]>
  • Loading branch information
Kakadu committed Sep 5, 2024
1 parent 0b2598e commit aaf0bdc
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 102 deletions.
10 changes: 0 additions & 10 deletions byterun/Makefile

This file was deleted.

14 changes: 0 additions & 14 deletions performance/Makefile

This file was deleted.

30 changes: 0 additions & 30 deletions runtime/Makefile

This file was deleted.

15 changes: 0 additions & 15 deletions runtime32/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion runtime32/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(rule
(target runtime.a)
(enabled_if
(<> %{ocaml-config:os_type} "Darwin"))
(= %{system} "linux"))
(mode
(promote (until-clean)))
(deps Makefile gc_runtime.s runtime.c runtime.h)
Expand Down
2 changes: 1 addition & 1 deletion stdlib/x32/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(rule
(enabled_if
(<> %{ocaml-config:os_type} "Darwin"))
(<> %{system} "linux"))
(deps
../Makefile
../../runtime32/Std.i
Expand Down
25 changes: 0 additions & 25 deletions tools/Makefile

This file was deleted.

10 changes: 5 additions & 5 deletions tutorial/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

(rule
(targets Expressions.x32.exe)
(enabled_if (<> %{ocaml-config:os_type} "Darwin"))
(enabled_if (= %{ocaml-config:os_type} "linux"))
(deps (:lama Expressions.lama) ../runtime32/runtime.a ../stdlib/x32/Fun.i)
(mode
(promote (until-clean)))
Expand Down Expand Up @@ -43,7 +43,7 @@

(rule
(targets Functions.x32.exe)
(enabled_if (<> %{ocaml-config:os_type} "Darwin"))
(enabled_if (= %{ocaml-config:os_type} "linux"))
(deps (:lama Functions.lama) ../runtime32/runtime.a ../stdlib/x32/Fun.i)
(mode
(promote (until-clean)))
Expand Down Expand Up @@ -85,7 +85,7 @@

(rule
(targets Hello.x32.exe)
(enabled_if (<> %{ocaml-config:os_type} "Darwin"))
(enabled_if (= %{ocaml-config:os_type} "linux"))
(deps (:lama Hello.lama) ../runtime32/runtime.a ../stdlib/x32/Fun.i)
(mode
(promote (until-clean)))
Expand Down Expand Up @@ -127,7 +127,7 @@

(rule
(targets PatternMatching.x32.exe)
(enabled_if (<> %{ocaml-config:os_type} "Darwin"))
(enabled_if (= %{ocaml-config:os_type} "linux"))
(deps (:lama PatternMatching.lama) ../runtime32/runtime.a ../stdlib/x32/Fun.i)
(mode
(promote (until-clean)))
Expand Down Expand Up @@ -169,7 +169,7 @@

(rule
(targets Values.x32.exe)
(enabled_if (<> %{ocaml-config:os_type} "Darwin"))
(enabled_if (= %{ocaml-config:os_type} "linux"))
(deps (:lama Values.lama) ../runtime32/runtime.a ../stdlib/x32/Fun.i)
(mode
(promote (until-clean)))
Expand Down
2 changes: 1 addition & 1 deletion tutorial/gen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let () =
template
|> Str.global_replace (Str.regexp "%DEMO%") (demo^".x32")
|> Str.global_replace (Str.regexp "%DEMOSRC%") demo
|> Str.global_replace (Str.regexp "%COND%") {|(enabled_if (<> %{ocaml-config:os_type} "Darwin"))|}
|> Str.global_replace (Str.regexp "%COND%") {|(enabled_if (= %{ocaml-config:os_type} "linux"))|}
|> Str.global_replace (Str.regexp "%RUNTIME%") "../runtime32"
|> Str.global_replace (Str.regexp "%STDLIB%") "../stdlib/x32"
|> Str.global_replace (Str.regexp "%EXTRASWITCHES%") "-march=x86"
Expand Down

0 comments on commit aaf0bdc

Please sign in to comment.