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

actions: test C API #48

Merged
merged 3 commits into from
Jan 25, 2020
Merged

actions: test C API #48

merged 3 commits into from
Jan 25, 2020

Conversation

Wenzel
Copy link
Owner

@Wenzel Wenzel commented Jan 24, 2020

Following #43

We should add CI test before merging a PR in the future.

cc @rageagainsthepc

@Wenzel
Copy link
Owner Author

Wenzel commented Jan 25, 2020

@rageagainsthepc turns out I had to fix the Makefile ! :-)

The order of GCC arguments matter, especially the linking order, always put them at the end of the command line:
https://www.quora.com/Why-does-order-of-parameters-supplied-to-GCC-matter

@Wenzel Wenzel merged commit 8733136 into master Jan 25, 2020
@Wenzel Wenzel deleted the test_c_api branch January 25, 2020 00:00
@rageagainsthepc
Copy link
Collaborator

Huh, it actually does ring a bell, but I've totally forgotten about it.

@Wenzel
Copy link
Owner Author

Wenzel commented Jan 26, 2020

@rageagainsthepc the funny thing is that it actually compiled in my Debian 10 VM 🤷‍♂️

Older version of GCC, different behavior I guess..

@rageagainsthepc
Copy link
Collaborator

That can't be it. I've successfully compiled it on Fedora 31 with a very recent version of GCC. 🤔

@Wenzel
Copy link
Owner Author

Wenzel commented Jan 28, 2020

Well, on my ubuntu 19.10, it didn't.

Important thing is that we respect gcc's command line expectations.

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.

2 participants