Skip to content

Fix build issues with Clang compiler #371

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

Closed
wants to merge 1 commit into from
Closed

Conversation

Kolumbs
Copy link

@Kolumbs Kolumbs commented Nov 2, 2021

git submodule libsass was pointing to deprecated url, see https://github.blog/2021-09-01-improving-git-protocol-security-github/#git-protocol-troubleshooting

GCC compiler option gnu++0x is deprecated in favour of gnu++11. This eases a pain especially for those who want to build using Clang instead, as such option does not exist at all there.
From GCC manual:
gnu++11
gnu++0x
GNU dialect of -std=c++11. The name gnu++0x is deprecated.

git submodule libsass was pointing to deprecated url, see https://github.blog/2021-09-01-improving-git-protocol-security-github/#git-protocol-troubleshooting

GCC compiler option gnu++0x is deprecated in favour of gnu++11. This eases a pain especially for those who want to build using Clang instead, as such option does not exist at all there.
From GCC manual:
gnu++11
gnu++0x
    GNU dialect of -std=c++11.  The name gnu++0x is deprecated.
@@ -1,3 +1,3 @@
[submodule "libsass"]
path = libsass
url = git://github.com/sass/libsass.git
url = git@github.com:/sass/libsass.git
Copy link
Member

Choose a reason for hiding this comment

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

would prefer https here so it's clonable by others without needing ssh keys (and in CI)

Copy link
Author

Choose a reason for hiding this comment

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

Suggested change
url = [email protected]:/sass/libsass.git
url = https://sass/libsass.git

@@ -16,7 +16,7 @@

MACOS_FLAG = ['-mmacosx-version-min=10.7']
FLAGS_POSIX = [
'-fPIC', '-std=gnu++0x', '-Wall', '-Wno-parentheses', '-Werror=switch',
Copy link
Member

Choose a reason for hiding this comment

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

gnu++0x gives us higher compatibility with older compilers so I would prefer this be rebased out

Copy link
Author

Choose a reason for hiding this comment

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

yes, as this commit does not care about backwards compatibility closing it

@Kolumbs Kolumbs closed this Nov 3, 2021
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