Skip to content

Store compiler properties in a key-value map instead of repeatedly invoking ghc --info #1520

Merged
23Skidoo merged 2 commits into
haskell:masterfrom
23Skidoo:compiler-properties
Oct 11, 2013
Merged

Store compiler properties in a key-value map instead of repeatedly invoking ghc --info #1520
23Skidoo merged 2 commits into
haskell:masterfrom
23Skidoo:compiler-properties

Conversation

@23Skidoo

Copy link
Copy Markdown
Member

Fixes #1442.

@tibbe

tibbe commented Oct 8, 2013

Copy link
Copy Markdown
Member

LGTM for now.

I'm always a bit nervous when code uses "a big bag of crap" (i.e. a string to string map), but I cannot think about anything better right now that doesn't require us to rethink how we represent compiler specific info (which is really what we're doing here, as we really on specific strings created by GHC).

@23Skidoo

23Skidoo commented Oct 9, 2013

Copy link
Copy Markdown
Member Author

Well, ghc --info output basically is a string to string map. We could parse it to a more principled representation (e.g. something like CompilerFeatures { supportsParallelMake :: Bool, ...}), but I don't think we'd gain much from it.

@tibbe

tibbe commented Oct 11, 2013

Copy link
Copy Markdown
Member

Go ahead and merge.

23Skidoo added a commit that referenced this pull request Oct 11, 2013
Store compiler properties in a key-value map instead of repeatedly invoking `ghc --info`
@23Skidoo 23Skidoo merged commit 16444ec into haskell:master Oct 11, 2013
@23Skidoo 23Skidoo deleted the compiler-properties branch October 11, 2013 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary repeated invocations of ghc --info

2 participants