'How to change compiler, which is detected by meson?

On my pc I have compiler gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0. I would like to compile gstreamer source code, where is meson.build.

In meson.build, there is line: cc = meson.get_compiler('c')

In user's path I set CC to gcc. When I start meson using command: meson /path/to/directory I see that meson select gcc (gcc 8.1.0 "gcc (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 8.1.0"). How can I change that?

I tried cc=gcc too.

My cpu is AMD 64bit.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source