Skip to content
Snippets Groups Projects
Commit 8a6772fb authored by Andre Maroneze's avatar Andre Maroneze
Browse files

Merge branch 'feature/blanchard/kernel/refactor-config' into 'master'

Kernel compatibility: share path

See merge request frama-c/frama-clang!238
parents 166848ac 1e88a9bf
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ module Clang_command = ...@@ -34,7 +34,7 @@ module Clang_command =
struct struct
let option_name = "-cxx-clang-command" let option_name = "-cxx-clang-command"
let default = "framaCIRGen" let default = "framaCIRGen"
let help = let help =
"use <cmd> as the parsing command. Defaults to " ^ default "use <cmd> as the parsing command. Defaults to " ^ default
let arg_name = "cmd" let arg_name = "cmd"
end) end)
...@@ -153,20 +153,22 @@ let parseable_output_hook _ f = ...@@ -153,20 +153,22 @@ let parseable_output_hook _ f =
let () = ParseableOutput.add_set_hook parseable_output_hook let () = ParseableOutput.add_set_hook parseable_output_hook
module C_std_headers = module C_std_headers =
String( String(
struct struct
let default = (Fc_config.datadir:>string) ^ "/libc" let default =
(Kernel.Share.get_dir "libc" :> string)
let option_name = "-cxx-cstdlib-path" let option_name = "-cxx-cstdlib-path"
let help = "<path> where to look for C standard headers \ let help = "<path> where to look for C standard headers \
(default: Frama-C libc in " ^ default ^ ")" (default: Frama-C libc in " ^ default ^ ")"
let arg_name = "path" let arg_name = "path"
end) end)
module Cxx_std_headers = module Cxx_std_headers =
String( String(
struct struct
let default = (Fc_config.datadir:>string) ^ "/frama-clang/libc++" let default =
(Kernel.Share.get_dir "frama-clang/libc++" :> string)
let option_name = "-cxx-c++stdlib-path" let option_name = "-cxx-c++stdlib-path"
let help = "<path> where to look for C++ standard headers \ let help = "<path> where to look for C++ standard headers \
(default: FClang libc++ in " ^ default ^ ")" (default: FClang libc++ in " ^ default ^ ")"
......
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