-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Please include your meson.build files, preferably as a minimal toy example showing the issue.
You may need to create simple source code files (don't include private/proprietary code).
project('foo', 'c')
executable('a.out', 'a.c', dependencies: dependency('openmp'))// a.c
int main(void) {}$ CC=icx meson setup build
The Meson build system
Version: 1.5.1
Source dir: /tmp
Build dir: /tmp/build
Build type: native build
Project name: foo
Project version: undefined
C compiler for the host machine: icx (intel-llvm 2024.2.0 "Intel(R) oneAPI DPC++/C++ Compiler 2024.2.0 (2024.2.0.20240602)")
C linker for the host machine: icx ld.bfd 2.42.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Run-time dependency OpenMP found: YES 5.1
Build targets in project: 1
Found ninja-1.12.1 at /usr/bin/ninja
Cleaning... 0 files.
$ ninja -C build -v
ninja: Entering directory `build'
[1/2] icx -Ia.out.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -fopenmp -MD -MQ a.out.p/a.c.o -MF a.out.p/a.c.o.d -o a.out.p/a.c.o -c ../a.c
icx: warning: Use of '-qopenmp' recommended over '-fopenmp' [-Wrecommended-option]
[2/2] icx -o a.out a.out.p/a.c.o -Wl,--as-needed -Wl,--no-undefined -fopenmp
icx: warning: Use of '-qopenmp' recommended over '-fopenmp' [-Wrecommended-option]Expected behavior
-qopenmp is populated, similarly to ifx Fortran compiler.
system parameters
- Is this a cross build or just a plain native build (for the same computer)? native
- what operating system (e.g. MacOS Catalina, Windows 10, CentOS 8.0, Ubuntu 18.04, etc.): EndeavourOS
- what Python version are you using e.g. 3.8.0: 3.12.4
- what
meson --version: 1.5.1 - what
ninja --versionif it's a Ninja build: 1.12.1