Просмотр исходного кода

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

Taddeus Kroes 12 лет назад
Родитель
Сommit
0b75b5d368
1 измененных файлов с 1 добавлено и 1 удалено
  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