Skip to content

Comments

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

Merged
xkubov merged 1 commit intomasterfrom
issue-842-stdc++fs
Sep 1, 2020
Merged

utils: fix #842, always link stdc++fs if linux & gcc.#846
xkubov merged 1 commit intomasterfrom
issue-842-stdc++fs

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.

@PeterMatula PeterMatula requested a review from xkubov August 26, 2020 13:17
@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