Skip to content

Commit

Permalink
waf: move setting of -cl-single-precision-constant into cxx-flags block
Browse files Browse the repository at this point in the history
we have two separate blocks, one for setting c flags, one for setting cxx flags.

Move cxx set into correct area
  • Loading branch information
peterbarker authored and tridge committed Feb 4, 2025
1 parent 6f40c80 commit 613aa60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,6 @@ def configure_env(self, cfg, env):
'-Werror=implicit-fallthrough',
'-cl-single-precision-constant',
]
env.CXXFLAGS += [
'-cl-single-precision-constant',
]
else:
env.CFLAGS += [
'-Wno-format-contains-nul',
Expand Down Expand Up @@ -424,6 +421,7 @@ def configure_env(self, cfg, env):
'-Wno-mismatched-tags',
'-Wno-gnu-variable-sized-type-not-at-end',
'-Werror=implicit-fallthrough',
'-cl-single-precision-constant',
]
else:
env.CXXFLAGS += [
Expand Down

0 comments on commit 613aa60

Please sign in to comment.