Skip to content

Force SCons to use GCC when building .c files #928

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

Merged

Conversation

PeanutbutterWarrior
Copy link
Contributor

This fixes SCons on Windows when MSVC is installed. Previously it would attempt to use MSVC, but fail due to trying to pass it gcc libraries to link.

This needs testing on Linux before it is merged.

It may be better to have the sconstruct file detect which compiler is being used and adjust the calling based on that, so users with only MSVC or with clang can also build. Fixing it for now would still seem prudent, and we can change the behaviour later if wanted.

@Amaras
Copy link
Member

Amaras commented Nov 9, 2021

I can confirm it runs as previously on my Ubuntu Linux machine. I will review the changes more fully later

@Amaras
Copy link
Member

Amaras commented Nov 9, 2021

Alright, so the changes are quite simple, but I feel they are a bit too hard coded, especially when we're gonna add many more languages.
I'm still okay with this though.
(Not approving yet because I want to keep the discussion open)

@PeanutbutterWarrior
Copy link
Contributor Author

The most recent changes don't work, SCons has the same behaviour as before my commit.

…ted SCons's behaviour to using MSVC

This reverts commit 688b93a.
Copy link
Member

@Amaras Amaras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, it looks good to me. I think it's okay if we require GCC to compile.
The suggestion is basically just a nitpick, but it would bother me slightly less if you committed the change

@Amaras Amaras merged commit e016f4e into algorithm-archivists:master Nov 11, 2021
@PeanutbutterWarrior PeanutbutterWarrior deleted the fix-scons-on-windows branch November 12, 2021 23:37
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