rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.76k stars 312 forks source link

Link with stdc++fs to make it build with GCC 8 #433

Closed Saur2000 closed 2 years ago

Saur2000 commented 2 years ago

We needed this to be able to build with GCC 8.3.0 from Debian Buster. I am no cmake expert, so I hope this is reasonably correct.

rizsotto commented 2 years ago

Sorry @Saur2000 , this is not going to fly with other working systems. :/

Try to use CXXFLAGS=-lstdc++fs (or LDFALGS=-lstdc++fs) when run CMake.

hxzhao527 commented 1 year ago