mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
meson: simplify -gsplit-dwarf compiler argument check
Fixes:44b080af07("meson: implement split-debug") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28898> (cherry picked from commit11b060f41a)
This commit is contained in:
parent
281ac5e61b
commit
b52d5496d8
2 changed files with 2 additions and 7 deletions
|
|
@ -244,7 +244,7 @@
|
|||
"description": "meson: simplify `-gsplit-dwarf` compiler argument check",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "44b080af07f0ba516f0d5519bba86eb7c1ea7da2",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -962,12 +962,7 @@ endif
|
|||
pre_args += '-DMESA_DEBUG=' + (with_mesa_debug ? '1' : '0')
|
||||
|
||||
with_split_debug = get_option('split-debug') \
|
||||
.disable_if(not cc.compiles('''#include<stdio.h>
|
||||
int main() {
|
||||
printf("\n");
|
||||
};''',
|
||||
args : '-gsplit-dwarf',
|
||||
name : 'split-dwarf support'),
|
||||
.disable_if(not cc.has_argument('-gsplit-dwarf'),
|
||||
error_message : 'split-debug requires compiler -gsplit-dwarf support') \
|
||||
.disable_if(not cc.has_link_argument('-Wl,--gdb-index'),
|
||||
error_message : 'split-debug requires the linker argument -Wl,--gdb-index')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue