qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] meson: put custom CFLAGS after default CFLAGS


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] meson: put custom CFLAGS after default CFLAGS
Date: Thu, 10 Feb 2022 12:52:19 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.1

Hi Konstantin,

On 10/2/22 12:44, Konstantin Khlebnikov wrote:
Flags passed to configure must be at the end to override defaults.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
---
  meson.build |   12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/meson.build b/meson.build
index 5f43355071..d94f3ee3e3 100644
--- a/meson.build
+++ b/meson.build
@@ -3293,13 +3293,13 @@ if targetos == 'windows'
      summary_info += {'Windows SDK':   config_host['WIN_SDK']}
    endif
  endif
-summary_info += {'CFLAGS':            ' '.join(get_option('c_args')
-                                               + ['-O' + 
get_option('optimization')]
-                                               + (get_option('debug') ? ['-g'] 
: []))}
+summary_info += {'CFLAGS':            ' '.join(['-O' + 
get_option('optimization')]
+                                               + (get_option('debug') ? ['-g'] 
: [])
+                                               + get_option('c_args'))}
  if link_language == 'cpp'
-  summary_info += {'CXXFLAGS':        ' '.join(get_option('cpp_args')
-                                               + ['-O' + 
get_option('optimization')]
-                                               + (get_option('debug') ? ['-g'] 
: []))}
+  summary_info += {'CXXFLAGS':        ' '.join(['-O' + 
get_option('optimization')]
+                                               + (get_option('debug') ? ['-g'] 
: [])
+                                               + get_option('cpp_args'))}

These are just informative... What is your problem? AFAIU This patch
doesn't have any logical impact on the build system.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]