瀏覽代碼

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

Taddeus Kroes 12 年之前
父節點
當前提交
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