Il 20 aprile 2022 20:20:20 CEST, "Marc-André Lureau" 
<marcandre.lur...@gmail.com> ha scritto:
>> +  # Disable ASLR for debug builds to allow debugging with gdb
>> +  if get_option('optimization') == 0
>
>
>../meson.build:188:5: ERROR: The `==` operator of str does not accept
>objects of type int (0)
>
>Why not check 'debug' ?

In Meson, -Ddebug governs whether debug info is included. In configure, 
--enable-debug disables optimization (and is a string apparently rather than an 
int...).

Paolo

>
>
>> +    qemu_ldflags += cc.get_supported_link_arguments('-Wl,--dynamicbase')
>> +  endif
>> +endif
>> +
>>  if get_option('gprof')
>>    qemu_cflags += ['-p']
>>    qemu_cxxflags += ['-p']
>> --
>> 2.35.1
>>
>>
>>
>>
>


Reply via email to