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

utils: fix #842, always link stdc++fs if linux & gcc. #846

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

PeterMatula
Copy link
Collaborator

Try to fix #842 by always linking against stdc++fs on Linux&GCC combo.

Notes:

  • This might cause problems (later/now) on some system - if there is no stdc++fs known to GCC, linking against it will probably end up with error.
  • We could use CMAKE_CXX_COMPILER_VERSION to check for GCC 7/8, but I didn't want to complicate it.

@xkubov Please take a look and merge if ok.

@xkubov
Copy link
Contributor

xkubov commented Sep 1, 2020

I have tested this with GCC 8 with CMake unable to locate stdc++fs and RetDec built fine. This solution may create an error in the future, but right now, other approaches do more evil than good. So LGTM, merging.

@xkubov xkubov merged commit 6ca4346 into master Sep 1, 2020
@xkubov xkubov deleted the issue-842-stdc++fs branch September 1, 2020 10:21
xkubov pushed a commit that referenced this pull request Sep 1, 2020
Deletes aditional note for filsystem library.

After #846 RetDec should handle manually all cases for filsystem
library in the system. Build should be possible without special
effort on any major system that is supported.
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.

Build error: undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
2 participants