Explorar el Código

Added current working directory to cpp arguments, for proper header file includes

Taddeus Kroes hace 12 años
padre
commit
0b75b5d368
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      phases/load.ml

+ 1 - 1
phases/load.ml

@@ -6,7 +6,7 @@ open Util
  * -C               : Don't remove comments
  * -traditional-cpp : Don't remove excessive whitespaces, so that error
  *                    messages preserve correct character locations *)
-let cpp_cmd = "cpp -nostdinc -C -traditional-cpp"
+let cpp_cmd = "cpp -nostdinc -C -traditional-cpp -I" ^ Sys.getcwd ()
 
 let input_all ic =
   let n = in_channel_length ic in