Parcourir la source

Build test executable to native code

 + Compile test executable to bytecode forces to build tested module for bytecode
while there are built for native code (“best” target of oasis). This leads to
longer builds, so we turn back all to native code.

 + This reverts some of the changes introduced by commit
b4ef6086367fb4bada13441341631ac7b363ec4d
Leo il y a 8 ans
Parent
commit
7a1a679caf
3 fichiers modifiés avec 14 ajouts et 13 suppressions
  1. 1 1
      _oasis
  2. 8 8
      _tags
  3. 5 4
      setup.ml

+ 1 - 1
_oasis

@@ -35,7 +35,7 @@ Executable oclaunch
 Executable run_test
   Path: src
   MainIs: test/test.ml
-  CompiledObject: byte
+  CompiledObject: best
   Install: false
   BuildDepends: alcotest, oUnit, core, textutils, atdgen, threads, re2
 

+ 8 - 8
_tags

@@ -1,5 +1,5 @@
 # OASIS_START
-# DO NOT EDIT (digest: 9247e1447cdec4448281089474469785)
+# DO NOT EDIT (digest: db4bdd27155ce9d25c2a54aac4c69750)
 # Ignore VCS directories, you can use the same kind of rule outside
 # OASIS_START/STOP if you want to exclude directories that contains
 # useless stuff for the build process
@@ -21,13 +21,13 @@ true: annot, bin_annot
 <src/oclaunch.{native,byte}>: pkg_textutils
 <src/oclaunch.{native,byte}>: pkg_threads
 # Executable run_test
-"src/test/test.byte": pkg_alcotest
-"src/test/test.byte": pkg_atdgen
-"src/test/test.byte": pkg_core
-"src/test/test.byte": pkg_oUnit
-"src/test/test.byte": pkg_re2
-"src/test/test.byte": pkg_textutils
-"src/test/test.byte": pkg_threads
+<src/test/test.{native,byte}>: pkg_alcotest
+<src/test/test.{native,byte}>: pkg_atdgen
+<src/test/test.{native,byte}>: pkg_core
+<src/test/test.{native,byte}>: pkg_oUnit
+<src/test/test.{native,byte}>: pkg_re2
+<src/test/test.{native,byte}>: pkg_textutils
+<src/test/test.{native,byte}>: pkg_threads
 <src/*.ml{,i,y}>: pkg_alcotest
 <src/*.ml{,i,y}>: pkg_atdgen
 <src/*.ml{,i,y}>: pkg_core

+ 5 - 4
setup.ml

@@ -1,7 +1,7 @@
 (* setup.ml generated for the first time by OASIS v0.4.5 *)
 
 (* OASIS_START *)
-(* DO NOT EDIT (digest: 9faef1402edb5230530d17b9bdf0bd43) *)
+(* DO NOT EDIT (digest: 6004766a4c88447d02799f6b7beb56bd) *)
 (*
    Regenerated by OASIS v0.4.6
    Visit http://oasis.forge.ocamlcore.org for more information and
@@ -6999,7 +6999,7 @@ let setup_t =
                       bs_build = [(OASISExpr.EBool true, true)];
                       bs_install = [(OASISExpr.EBool true, false)];
                       bs_path = "src";
-                      bs_compiled_object = Byte;
+                      bs_compiled_object = Best;
                       bs_build_depends =
                         [
                            FindlibPackage ("alcotest", None);
@@ -7058,7 +7058,8 @@ let setup_t =
        };
      oasis_fn = Some "_oasis";
      oasis_version = "0.4.6";
-     oasis_digest = Some "\246nj\234\185]\210\181\234\2233\203;to\164";
+     oasis_digest =
+       Some "5\186\162\238_|\031\158\144Z\019\231\180\028\139\206";
      oasis_exec = None;
      oasis_setup_args = [];
      setup_update = false
@@ -7066,6 +7067,6 @@ let setup_t =
 
 let setup () = BaseSetup.setup setup_t;;
 
-# 7070 "setup.ml"
+# 7071 "setup.ml"
 (* OASIS_STOP *)
 let () = setup ();;