src/HOL/Library/code_test.ML
changeset 62549 9498623b27f0
parent 61077 06cca32aa519
child 63157 65a81a4ef7f8
equal deleted inserted replaced
62548:f8ebb715e06d 62549:9498623b27f0
   380       "$(SML_LIB)/basis/basis.mlb\n" ^
   380       "$(SML_LIB)/basis/basis.mlb\n" ^
   381       generatedN ^ "\n" ^
   381       generatedN ^ "\n" ^
   382       driverN
   382       driverN
   383 
   383 
   384     val compile_cmd =
   384     val compile_cmd =
   385       File.shell_path (Path.variable ISABELLE_MLTON) ^
   385       File.bash_path (Path.variable ISABELLE_MLTON) ^
   386       " -default-type intinf " ^ File.shell_path ml_basis_path
   386       " -default-type intinf " ^ File.bash_path ml_basis_path
   387     val run_cmd = File.shell_path (Path.append path (Path.basic projectN))
   387     val run_cmd = File.bash_path (Path.append path (Path.basic projectN))
   388   in
   388   in
   389     {files = [(driver_path, driver), (ml_basis_path, ml_basis)],
   389     {files = [(driver_path, driver), (ml_basis_path, ml_basis)],
   390      compile_cmd = SOME compile_cmd, run_cmd = run_cmd, mk_code_file = K code_path}
   390      compile_cmd = SOME compile_cmd, run_cmd = run_cmd, mk_code_file = K code_path}
   391   end
   391   end
   392 
   392 
   462     val compile_cmd =
   462     val compile_cmd =
   463       Path.implode (Path.variable ISABELLE_OCAMLC) ^ " -w pu -o " ^ Path.implode compiled_path ^
   463       Path.implode (Path.variable ISABELLE_OCAMLC) ^ " -w pu -o " ^ Path.implode compiled_path ^
   464       " -I " ^ Path.implode path ^
   464       " -I " ^ Path.implode path ^
   465       " nums.cma " ^ Path.implode code_path ^ " " ^ Path.implode driver_path
   465       " nums.cma " ^ Path.implode code_path ^ " " ^ Path.implode driver_path
   466 
   466 
   467     val run_cmd = File.shell_path compiled_path
   467     val run_cmd = File.bash_path compiled_path
   468   in
   468   in
   469     {files = [(driver_path, driver)],
   469     {files = [(driver_path, driver)],
   470      compile_cmd = SOME compile_cmd, run_cmd = run_cmd, mk_code_file = K code_path}
   470      compile_cmd = SOME compile_cmd, run_cmd = run_cmd, mk_code_file = K code_path}
   471   end
   471   end
   472 
   472 
   507     val compile_cmd =
   507     val compile_cmd =
   508       Path.implode (Path.variable ISABELLE_GHC) ^ " " ^ Code_Haskell.language_params ^ " " ^
   508       Path.implode (Path.variable ISABELLE_GHC) ^ " " ^ Code_Haskell.language_params ^ " " ^
   509       Config.get ctxt ghc_options ^ " -o " ^ Path.implode compiled_path ^ " " ^
   509       Config.get ctxt ghc_options ^ " -o " ^ Path.implode compiled_path ^ " " ^
   510       Path.implode driver_path ^ " -i" ^ Path.implode path
   510       Path.implode driver_path ^ " -i" ^ Path.implode path
   511 
   511 
   512     val run_cmd = File.shell_path compiled_path
   512     val run_cmd = File.bash_path compiled_path
   513   in
   513   in
   514     {files = [(driver_path, driver)],
   514     {files = [(driver_path, driver)],
   515      compile_cmd = SOME compile_cmd, run_cmd = run_cmd, mk_code_file = mk_code_file}
   515      compile_cmd = SOME compile_cmd, run_cmd = run_cmd, mk_code_file = mk_code_file}
   516   end
   516   end
   517 
   517 
   549       "  }\n" ^
   549       "  }\n" ^
   550       "}\n"
   550       "}\n"
   551 
   551 
   552     val compile_cmd =
   552     val compile_cmd =
   553       Path.implode (Path.append (Path.variable ISABELLE_SCALA) (Path.basic "scalac")) ^
   553       Path.implode (Path.append (Path.variable ISABELLE_SCALA) (Path.basic "scalac")) ^
   554       " -d " ^ File.shell_path path ^ " -classpath " ^ File.shell_path path ^ " " ^
   554       " -d " ^ File.bash_path path ^ " -classpath " ^ File.bash_path path ^ " " ^
   555       File.shell_path code_path ^ " " ^ File.shell_path driver_path
   555       File.bash_path code_path ^ " " ^ File.bash_path driver_path
   556 
   556 
   557     val run_cmd =
   557     val run_cmd =
   558       Path.implode (Path.append (Path.variable ISABELLE_SCALA) (Path.basic "scala")) ^
   558       Path.implode (Path.append (Path.variable ISABELLE_SCALA) (Path.basic "scala")) ^
   559       " -cp " ^ File.shell_path path ^ " Test"
   559       " -cp " ^ File.bash_path path ^ " Test"
   560   in
   560   in
   561     {files = [(driver_path, driver)],
   561     {files = [(driver_path, driver)],
   562      compile_cmd = SOME compile_cmd, run_cmd = run_cmd, mk_code_file = K code_path}
   562      compile_cmd = SOME compile_cmd, run_cmd = run_cmd, mk_code_file = K code_path}
   563   end
   563   end
   564 
   564