|
|
@@ -5,8 +5,11 @@ open Util
|
|
|
* -nostdinc : Don't include from C stdlib
|
|
|
* -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 -I" ^ Sys.getcwd ()
|
|
|
+ * messages preserve correct character locations
|
|
|
+ * -I : Add working dir and executable dir to include dirs *)
|
|
|
+let cpp_cmd = "cpp -nostdinc -C -traditional-cpp \
|
|
|
+ -I" ^ Sys.getcwd () ^ " \
|
|
|
+ -I" ^ (Filename.dirname Sys.executable_name)
|
|
|
|
|
|
let input_all ic =
|
|
|
let n = in_channel_length ic in
|