Skip to content
Snippets Groups Projects
Commit ed481295 authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

[project @ 2000-06-30 19:12:21 by panne]

Hackily quote -#include options before passing them to mkdependHS
parent a4b4ad24
No related merge requests found
...@@ -1202,11 +1202,9 @@ newTempName extn = do ...@@ -1202,11 +1202,9 @@ newTempName extn = do
do_mkdependHS :: [String] -> [String] -> IO () do_mkdependHS :: [String] -> [String] -> IO ()
do_mkdependHS cmd_opts srcs = do do_mkdependHS cmd_opts srcs = do
-- HACK
-- # They're not (currently) needed, but we need to quote any -#include options let quote_include_opt o | prefixMatch "-#include" o = "'" ++ o ++ "'"
-- foreach (@Cmd_opts) { | otherwise = o
-- s/-#include.*$/'$&'/g;
-- };
mkdependHS <- readIORef pgm_dep mkdependHS <- readIORef pgm_dep
mkdependHS_opts <- getOpts opt_dep mkdependHS_opts <- getOpts opt_dep
...@@ -1216,7 +1214,7 @@ do_mkdependHS cmd_opts srcs = do ...@@ -1216,7 +1214,7 @@ do_mkdependHS cmd_opts srcs = do
(unwords (mkdependHS : (unwords (mkdependHS :
mkdependHS_opts mkdependHS_opts
++ hs_src_cpp_opts ++ hs_src_cpp_opts
++ ("--" : cmd_opts ) ++ ("--" : map quote_include_opt cmd_opts )
++ ("--" : srcs) ++ ("--" : srcs)
)) ))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment