Skip to content

Commit

Permalink
If cpp_path is relative, make it relative to the current theory. (#676)
Browse files Browse the repository at this point in the history
Signed-off-by: Achim D. Brucker <[email protected]>
  • Loading branch information
adbrucker authored Jan 27, 2024
1 parent 8f5e654 commit c71c31d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/c-parser/isar_install.ML
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ fun get_Csyntax thy s = let
val cpp_option =
case Config.get_global thy cpp_path of
"" => NONE
| s => SOME s
| s => SOME (if Path.is_absolute (Path.explode s)
then s
else Path.implode (Path.append (Resources.master_directory thy) (Path.explode s)))
val cpp_error_count = Config.get_global thy report_cpp_errors
val (ast0, _) =
StrictCParser.parse
Expand Down

0 comments on commit c71c31d

Please sign in to comment.