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

Galette compiling #15

Open
bschymanski opened this issue Jan 29, 2025 · 1 comment
Open

Galette compiling #15

bschymanski opened this issue Jan 29, 2025 · 1 comment

Comments

@bschymanski
Copy link

Hi,

sorry for asking a very noob question:

how do i compile galette? Or get somehing like "galette --help" to run?
Can you give me a hint on where to start looking?

This works for me:
$ cp testcases/success/GAL16V8_combinatorial.pld ./example.pld
$ cargo run ./example.pld

Kind Regards

Bernd

@simon-frankau
Copy link
Owner

Thank you for asking "noob" questions - they identify where I should improve the documentation!

To build:

It'll be automatically built when you do a cargo run, but to just build it:

cargo build

You might want to do a release build, in which case

cargo build --release

but to be honest there's not much speed difference compared to the debug version.

The executable will then be at target/debug/galette or target/release/galette, as appropriate.

To run:

As you wrote, cargo run ./example.pld works. You can also run it directly with ./target/debug/galette ./example.pld.

To run the release version, you can use cargo run --release -- ./example.pld or ./target/release/galette ./example.pld.

If you want to use the --help flag, try cargo run -- --help or ./target/debug/galette --help. The -- is needed when doing cargo run, because cargo itself takes flags, and the -- tells it "From here on out, pass the flags to the thing we're running (galette). Cargo shouldn't try to interpret them."

Next steps:

I hope this is helpful to you. Much of it is standard "How to build and run Rust programs", but if you're not used to Rust and just want to get your PLD working, I imagine this is frustrating!

If it's ok with you, please keep the issue open until README.md is better, containing the information you need.

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