Skip to content

Commit

Permalink
scripts: waifulib: cmake: filter out -MMD compiler flag from generate…
Browse files Browse the repository at this point in the history
…d CMake flags
  • Loading branch information
a1batross committed Nov 20, 2024
1 parent a56f512 commit d1f70bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/waifulib/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,13 @@ def get_content(self):

flags = env.CFLAGS
if len(flags):
# remove -MMD flag from gccdeps.py as it's already inserted by CMake
flags = [f for f in flags if not f == '-MMD']
content += 'set(CMAKE_C_FLAGS "%s")\n' % (' '.join(flags))

flags = env.CXXFLAGS
if len(flags):
flags = [f for f in flags if not f == '-MMD']
content += 'set(CMAKE_CXX_FLAGS "%s")\n' % (' '.join(flags))

if len(self.tgens):
Expand Down

0 comments on commit d1f70bf

Please sign in to comment.