Skip to content
Snippets Groups Projects
Commit 7ff44e20 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

Merge branch 'feaeture/bytecode-execution' into 'master'

Allows to compile and execute in bytecode without WP

See merge request frama-c/frama-c!4408
parents 722c7721 9e6282aa
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
(executable (executable
(name empty_file) (name empty_file)
(public_name frama-c) (public_name frama-c)
(modes byte (best exe))
(modules empty_file) (modules empty_file)
(package frama-c) (package frama-c)
(flags :standard -open Frama_c_kernel -linkall) (flags :standard -open Frama_c_kernel -linkall)
......
...@@ -145,6 +145,14 @@ let load_module m = ...@@ -145,6 +145,14 @@ let load_module m =
load_plugin m load_plugin m
end end
let () = Printexc.register_printer (function
| Dynlink.Error err -> Some (Dynlink.error_message err)
| _ -> None
)
let () = Dynlink.allow_unsafe_modules true
(* ************************************************************************* *) (* ************************************************************************* *)
(** {2 Registering and accessing dynamic values} *) (** {2 Registering and accessing dynamic values} *)
(* ************************************************************************* *) (* ************************************************************************* *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment