projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
221f85f
)
[project @ 2000-06-28 16:57:05 by simonmar]
author
simonmar
<unknown>
Wed, 28 Jun 2000 16:57:05 +0000
(16:57 +0000)
committer
simonmar
<unknown>
Wed, 28 Jun 2000 16:57:05 +0000
(16:57 +0000)
ignore lines beginning with '#' when looking for {-# OPTIONS #-}
ghc/driver/Main.hs
patch
|
blob
|
history
diff --git
a/ghc/driver/Main.hs
b/ghc/driver/Main.hs
index
62643fc
..
1403830
100644
(file)
--- a/
ghc/driver/Main.hs
+++ b/
ghc/driver/Main.hs
@@
-945,6
+945,7
@@
getOptionsFromSource file
l <- hGetLine h
case () of
() | null l -> look h
+ | prefixMatch "#" l -> look h
| prefixMatch "{-# LINE" l -> look h
| Just (opts:_) <- matchRegex optionRegex l
-> return (words opts)