Browse Source

[cpp] Absolute paths with absolute-path (#11763)

* make the stack frame paths absolute

* Ensure we use a full path with the absolute-path define
Aidan Lee 11 months ago
parent
commit
bd0a34927c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/generators/gencpp.ml

+ 1 - 1
src/generators/gencpp.ml

@@ -1321,7 +1321,7 @@ exception PathFound of string;;
 
 
 
 
 let strip_file ctx file = (match Common.defined ctx Common.Define.AbsolutePath with
 let strip_file ctx file = (match Common.defined ctx Common.Define.AbsolutePath with
-   | true -> file
+   | true -> Path.get_full_path file
    | false -> ctx.class_paths#relative_path file)
    | false -> ctx.class_paths#relative_path file)
 ;;
 ;;