Skip to content

Instantly share code, notes, and snippets.

@mgood7123
Last active November 28, 2022 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgood7123/0fa2bd56878faa03c86e6e8d36725b2f to your computer and use it in GitHub Desktop.
Save mgood7123/0fa2bd56878faa03c86e6e8d36725b2f to your computer and use it in GitHub Desktop.
C:\Users\small\wayland-windows>type clang.txt
[binaries]
c = 'clang-cl'
C:\Users\small\wayland-windows>meson setup build --reconfigure --wipe --prefix=~/WAYLAND_LIBS --native-file=clang.txt
The Meson build system
Version: 0.64.1
Source dir: C:\Users\small\wayland-windows
Build dir: C:\Users\small\wayland-windows\build
Build type: native build
Project name: wayland
Project version: 1.21.90
Activating VS 17.3.6
C compiler for the host machine: clang-cl (clang-cl 14.0.5)
C linker for the host machine: lld-link lld-link 14.0.5
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -fvisibility=hidden: NO
Has header "sys/prctl.h" : NO
Has header "sys/procctl.h" : NO
Has header "sys/ucred.h" : NO
Checking for function "accept4" : NO
Checking for function "mkostemp" : NO
Checking for function "posix_fallocate" : NO
Checking for function "prctl" : NO
Checking for function "memfd_create" : NO
Checking for function "mremap" : NO
Checking for function "strndup" : YES
Checking whether type "struct xucred" has member "cr_pid" : NO
Found pkg-config: C:\Users\small\vcpkg\installed\x86-windows\bin\pkg-config.EXE (0.23)
WARNING: find_library('libffi') starting in "lib" only works by accident and is not portable
Run-time dependency libffi found: YES 3.4.2
Configuring config.h using configuration
Configuring wayland-version.h using configuration
WARNING: find_library('libexpat') starting in "lib" only works by accident and is not portable
Run-time dependency expat found: YES 2.5.0
WARNING: find_library('libxml2') starting in "lib" only works by accident and is not portable
Run-time dependency libxml-2.0 found: YES 2.9.14
Program embed.py found: YES (C:\Program Files\Meson\meson.exe runpython C:\Users\small\wayland-windows\src\embed.py)
Library m found: NO
Run-time dependency threads found: YES
Library dl found: NO
Dependency threads found: YES unknown (cached)
Dependency threads found: YES unknown (cached)
Library dl found: NO
C++ compiler for the host machine: cl (msvc 19.33.31630 "Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31630 for x64")
C++ linker for the host machine: link link 14.33.31630.0
Program sed found: YES (C:\Users\small\vcpkg\installed\x86-windows\bin\sed.EXE)
Program scanner-test.sh found: YES (sh C:\Users\small\wayland-windows\tests\scanner-test.sh)
Build targets in project: 41
NOTICE: Future-deprecated features used:
* 0.62.0: {'pkgconfig.generate variable for builtin directories'}
wayland 1.21.90
User defined options
Native files: clang.txt
prefix : ~/WAYLAND_LIBS
Found ninja-1.11.1 at "C:\Program Files\Meson\ninja.EXE"
Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper:
"C:\Program Files\Meson\meson.exe" compile -C build
C:\Users\small\wayland-windows>meson compile -C build
Activating VS 17.3.6
INFO: automatically activated MSVC compiler environment
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: "C:\Program Files\Meson\ninja.EXE" -C C:/Users/small/wayland-windows/build
ninja: Entering directory `C:/Users/small/wayland-windows/build'
[1/88] Compiling C object src/libwayland-private.a.p/wayland-os.c.obj
FAILED: src/libwayland-private.a.p/wayland-os.c.obj
"clang-cl" "-Isrc\libwayland-private.a.p" "-Isrc" "-I..\src" "-IC:/Users/small/vcpkg/installed/x86-windows/include" "/MD" "/nologo" "/showIncludes" "/utf-8" "/W3" "/clang:-std=c99" "/O2" "/Zi" "-D_POSIX_C_SOURCE=200809L" "-Wno-unused-parameter" "-Wstrict-prototypes" "-Wmissing-prototypes" "/Fdsrc\libwayland-private.a.p\wayland-os.c.pdb" /Fosrc/libwayland-private.a.p/wayland-os.c.obj "/c" ../src/wayland-os.c
...
C:\Users\small\wayland-windows>meson compile -C build
Activating VS 17.3.6
INFO: automatically activated MSVC compiler environment
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: "C:\Program Files\Meson\ninja.EXE" -C C:/Users/small/wayland-windows/build
ninja: Entering directory `C:/Users/small/wayland-windows/build'
[1/82] Compiling C object src/wayland-scanner.exe.p/scanner.c.obj
FAILED: src/wayland-scanner.exe.p/scanner.c.obj
"clang-cl" "-Isrc\wayland-scanner.exe.p" "-Isrc" "-I..\src" "-I." "-I.." "-I..\protocol" "-IC:/Users/small/vcpkg/installed/x86-windows/include" "-IC:/Users/small/vcpkg/installed/x86-windows/include/libxml2" "/MD" "/nologo" "/showIncludes" "/utf-8" "/W3" "/clang:-std=c99" "/O2" "/Zi" "-D_POSIX_C_SOURCE=200809L" "-Wno-unused-parameter" "-Wstrict-prototypes" "-Wmissing-prototypes" "-include" "config.h" "-DHAVE_LIBXML=1" "/Fdsrc\wayland-scanner.exe.p\scanner.c.pdb" /Fosrc/wayland-scanner.exe.p/scanner.c.obj "/c" ../src/scanner.c
clang-cl: warning: unknown argument ignored in clang-cl: '-include' [-Wunknown-argument]
clang-cl: error: cannot specify '/Fosrc/wayland-scanner.exe.p/scanner.c.obj' when compiling multiple source files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment