Skip to content

Commit

Permalink
Don't build broken pythonlib examples
Browse files Browse the repository at this point in the history
  • Loading branch information
snowleopard committed Sep 11, 2020
1 parent 3ec8864 commit 59db467
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions pythonlib/examples-async/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(executables (names ocaml_async) (preprocess (pps ppx_let ppx_python))
(modes (native shared_object)) (flags :standard -linkall)
(libraries base async pyml python_lib python_ocaml_init_async))
; (executables (names ocaml_async) (preprocess (pps ppx_let ppx_python))
; (modes (native shared_object)) (flags :standard -linkall)
; (libraries base async pyml python_lib python_ocaml_init_async))
4 changes: 2 additions & 2 deletions pythonlib/examples-gen/dune
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(executables (names python_gen) (preprocess (pps ppx_let ppx_python))
(libraries base compiler-libs.common pyml python_lib))
; (executables (names python_gen) (preprocess (pps ppx_let ppx_python))
; (libraries base compiler-libs.common pyml python_lib))
24 changes: 12 additions & 12 deletions pythonlib/examples-gen/generated/dune
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
(executables (names ocaml) (preprocess (pps ppx_let ppx_python))
(modes (byte shared_object)) (flags :standard -linkall)
(libraries base core_kernel pyml python_lib))
; (executables (names ocaml) (preprocess (pps ppx_let ppx_python))
; (modes (byte shared_object)) (flags :standard -linkall)
; (libraries base core_kernel pyml python_lib))

(rule (targets date_bindings.ml gen_types.ml)
(deps (:first_dep ../python_gen.exe)
%{workspace_root}/lib/core_kernel/src/core_kernel__Date.cmi)
(action
(bash
"%{first_dep} ../../../../../lib/core_kernel/src/core_kernel__Date.cmi ./date_bindings.ml"))
(mode fallback))
; (rule (targets date_bindings.ml gen_types.ml)
; (deps (:first_dep ../python_gen.exe)
; %{workspace_root}/lib/core_kernel/src/core_kernel__Date.cmi)
; (action
; (bash
; "%{first_dep} ../../../../../lib/core_kernel/src/core_kernel__Date.cmi ./date_bindings.ml"))
; (mode fallback))

(alias (name feature-subtree-build)
(deps date_bindings.ml gen_types.ml ocaml.so))
; (alias (name feature-subtree-build)
; (deps date_bindings.ml gen_types.ml ocaml.so))
6 changes: 3 additions & 3 deletions pythonlib/examples/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(executables (names ocaml) (preprocess (pps ppx_let ppx_python))
(modes (byte shared_object)) (flags :standard -linkall)
(libraries base compiler-libs.toplevel pyml python_lib python_ocaml_init))
; (executables (names ocaml) (preprocess (pps ppx_let ppx_python))
; (modes (byte shared_object)) (flags :standard -linkall)
; (libraries base compiler-libs.toplevel pyml python_lib python_ocaml_init))

0 comments on commit 59db467

Please sign in to comment.