Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qualify targets associated with cabal test and cabal run #634

Open
Symbolk opened this issue Oct 24, 2020 · 1 comment
Open

Qualify targets associated with cabal test and cabal run #634

Symbolk opened this issue Oct 24, 2020 · 1 comment

Comments

@Symbolk
Copy link

Symbolk commented Oct 24, 2020

I am always wondering if there is a multi-language parsing tool and that leads me to semantic. So I clone it and install the required platforms on my Macbook Pro 16 2019 (16+512), and try to compile it. Having to say that I did not expect it to cost about 1 hour, and swallowed all my memory :->

After all, it compiled and built successfully, but when I run 'cabal v2-test', it should come with 'all' at the end (Figure 1); when I run 'cabal v2-run semantic -- --help', it did not run the executable semantic.

Although I quickly figured out how to run it directly, I wondering if the document should be updated?

image

image

@patrickt
Copy link
Contributor

patrickt commented Oct 24, 2020

Aha, yeah, we need to qualify the cabal run with exe:semantic so it doesn’t run the benchmarks.

Also, the reason it took an hour is because you compiled with optimizations on. Try cabal configure --disable-optimization --enable-tests --disable-documentation --jobs=16

@patrickt patrickt changed the title Running 'cabal v2-test' and 'cabal v2-run semantic -- --help' does not work as expected Qualify targets associated with cabal test and cabal run Oct 24, 2020
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

No branches or pull requests

2 participants