From 613aa6028f707b0bae3407f7f3688aa09f9dc5c9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 31 Jan 2025 20:57:45 +1100 Subject: [PATCH] waf: move setting of -cl-single-precision-constant into cxx-flags block we have two separate blocks, one for setting c flags, one for setting cxx flags. Move cxx set into correct area --- Tools/ardupilotwaf/boards.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 4fc25ee341338..19c907ae1f536 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -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', @@ -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 += [