[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake
From: |
Jag Raman |
Subject: |
Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake |
Date: |
Fri, 25 Feb 2022 04:03:39 +0000 |
> On Feb 24, 2022, at 12:52 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> On 2/22/22 20:05, Jag Raman wrote:
>>> - defaults[prefix + 'COMPILER'] = exe_list
>>> + defaults[f'{prefix}COMPILER'] = [exe_list[0]]
>>> + for i in range(1, len(exe_list)):
>>> + defaults[f'{prefix}COMPILER_ARG{i}'] = [exe_list[i]]
>>> +
>>> if comp_obj.get_id() == 'clang-cl':
>>> defaults['CMAKE_LINKER'] = comp_obj.get_linker_exelist()
>> This fix works at my end.
>
> Would you please check that -m64 and -mcx16 are passed indeed to the compiler?
Hi Paolo,
Yes, I’m able to see that -m64 and -mcx16 are passed to the compiler.
# cat ./subprojects/libvfio-user/__CMake_build/CMakeMesonToolchainFile.cmake
…
set(CMAKE_C_COMPILER "/opt/rh/devtoolset-9/root/usr/bin/cc")
set(CMAKE_C_COMPILER_ARG1 "-m64")
set(CMAKE_C_COMPILER_ARG2 "-mcx16")
…
Full log here: https://pastebin.com/PEwNSWMn
Thank you!
--
Jag
>
> Paolo
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, (continued)
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Peter Maydell, 2022/02/17
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Jag Raman, 2022/02/17
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Jag Raman, 2022/02/17
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Paolo Bonzini, 2022/02/18
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Jag Raman, 2022/02/18
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Jag Raman, 2022/02/18
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Paolo Bonzini, 2022/02/20
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Paolo Bonzini, 2022/02/20
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Jag Raman, 2022/02/22
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Paolo Bonzini, 2022/02/24
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake,
Jag Raman <=
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Paolo Bonzini, 2022/02/28
- Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake, Jag Raman, 2022/02/28
[PATCH v6 11/19] vfio-user: handle PCI config space accesses, Jagannathan Raman, 2022/02/17
[PATCH v6 13/19] vfio-user: handle DMA mappings, Jagannathan Raman, 2022/02/17
[PATCH v6 14/19] vfio-user: handle PCI BAR accesses, Jagannathan Raman, 2022/02/17
[PATCH v6 16/19] softmmu/vl: defer backend init, Jagannathan Raman, 2022/02/17
[PATCH v6 15/19] vfio-user: handle device interrupts, Jagannathan Raman, 2022/02/17