Browse Source

BUG,ENH: Fix .S handling

TMP: Fixup
pull/4820/head
Rohit Goswami 1 year ago
parent
commit
48b68c2c62
No known key found for this signature in database GPG Key ID: 9CCCE36402CB49A6
1 changed files with 16 additions and 3 deletions
  1. +16
    -3
      kernel/meson.build

+ 16
- 3
kernel/meson.build View File

@@ -1233,16 +1233,29 @@ foreach _kop : base_kops
endforeach

_kern_libs = []
_kern_deps = []
_is_asm = false
foreach conf: kernel_confs
# message(conf['name'])
# message(conf)
if '.s' in conf['src'] or '.S' in conf['src']
_is_asm = true
endif
if _is_asm
# See https://github.com/mesonbuild/meson/discussions/13374
_kern_deps += declare_dependency(
sources: conf['src'],
include_directories: _inc,
compile_args: conf['c_args'],
)
else
_kern_libs += static_library(
conf['name'],
conf['src'],
include_directories: _inc,
c_args: conf['c_args'],
)
endif
endforeach

_kern = static_library('_kern',
link_whole: _kern_libs)
link_whole: _kern_libs,
dependencies: _kern_deps)

Loading…
Cancel
Save