[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls |
Date: |
Mon, 8 Feb 2021 10:35:45 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 08/02/21 10:20, Peter Maydell wrote:
+
+if get_option('tcg_interpreter')
+ libffi = dependency('libffi', version: '>=3.0',
+ static: enable_static, method: 'pkg-config',
+ required: true)
+ specific_ss.add(libffi)
+ specific_ss.add(files('tcg/tci.c'))
+endif
Did you need a PKG_CONFIG_LIBDIR set for homebrew?
Is this the "meson doesn't actually add the cflags everywhere it should"
bug again ?
No, it shouldn't be the same bug. In this case the dependency is not
indirect dependency, specific_ss is included directly:
target_specific = specific_ss.apply(config_target, strict: false)
arch_srcs += target_specific.sources()
arch_deps += target_specific.dependencies()
lib = static_library('qemu-' + target,
sources: arch_srcs + genh,
dependencies: arch_deps,
objects: objects,
include_directories: target_inc,
c_args: c_args,
build_by_default: false,
name_suffix: 'fa')
It's more likely to be what Stefan pointed out later:
Meanwhile I noticed an additional detail:
There exist two different pkg-config configurations for libffi on Homebrew:
% pkg-config --cflags libffi
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi
% export PKG_CONFIG_PATH="/opt/homebrew/opt/libffi/lib/pkgconfig"
% pkg-config --cflags libffi
-I/opt/homebrew/Cellar/libffi/3.3_2/include
By default it points to a system directory which does not exist at all
on my Mac, so that will never work.
Paolo
- [PATCH v2 60/93] tcg/tci: Remove tci_disas, (continued)
- [PATCH v2 60/93] tcg/tci: Remove tci_disas, Richard Henderson, 2021/02/03
- [PATCH v2 61/93] tcg/tci: Implement the disassembler properly, Richard Henderson, 2021/02/03
- [PATCH v2 62/93] tcg: Build ffi data structures for helpers, Richard Henderson, 2021/02/03
- [PATCH v2 63/93] tcg/tci: Use ffi for calls, Richard Henderson, 2021/02/03
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Stefan Weil, 2021/02/07
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Richard Henderson, 2021/02/07
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Peter Maydell, 2021/02/07
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Richard Henderson, 2021/02/07
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Stefan Weil, 2021/02/07
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Peter Maydell, 2021/02/08
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls,
Paolo Bonzini <=
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Stefan Weil, 2021/02/08
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Richard Henderson, 2021/02/08
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Stefan Weil, 2021/02/08
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Richard Henderson, 2021/02/08
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Richard Henderson, 2021/02/09
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Stefan Weil, 2021/02/09
- Re: [PATCH v2 63/93] tcg/tci: Use ffi for calls, Stefan Weil, 2021/02/09
[PATCH v2 65/93] tcg/tci: Move call-return regs to end of tcg_target_reg_alloc_order, Richard Henderson, 2021/02/03
[PATCH v2 66/93] tcg/tci: Push opcode emit into each case, Richard Henderson, 2021/02/03
[PATCH v2 64/93] tcg/tci: Improve tcg_target_call_clobber_regs, Richard Henderson, 2021/02/03