Re: [Mesa-dev] [EXTERNAL] Cross-compile from Linux to Windows

2020-11-10 Thread Federico Dossena
Thank you for your reply. That's where I got stuck on Windows, I can't get it to find LLVM. I built LLVM without problems for both x86 and x86_64 in 2 separate folders, but when I try to build mesa, even with --cmake-prefix-path, it doesn't find it, it always say "Neither a subproject director

[Mesa-dev] Static thread safety checking with clang

2020-11-10 Thread Kristian Høgsberg
Hi, I wanted to call attention to https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7529 which shows how we can use a new clang __attribute__ to statically check locking invariants. It's probably not perfect, but more like static type checking - there will always be cases where you can

Re: [Mesa-dev] Static thread safety checking with clang

2020-11-10 Thread Chia-I Wu
On Tue, Nov 10, 2020 at 8:09 AM Kristian Høgsberg wrote: > > Hi, > > I wanted to call attention to > > https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7529 > > which shows how we can use a new clang __attribute__ to statically > check locking invariants. It's probably not perfect, but

Re: [Mesa-dev] Static thread safety checking with clang

2020-11-10 Thread Kristian Høgsberg
On Tue, Nov 10, 2020 at 8:00 PM Chia-I Wu wrote: > > On Tue, Nov 10, 2020 at 8:09 AM Kristian Høgsberg wrote: > > > > Hi, > > > > I wanted to call attention to > > > > https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7529 > > > > which shows how we can use a new clang __attribute__ to

Re: [Mesa-dev] [EXTERNAL] Cross-compile from Linux to Windows

2020-11-10 Thread Dylan Baker
cmake_prefix_path isn't like pkg_config_path, it expects to find an installed prefix, on linux it expects to see something like path_to_prefix/usr/{lib,bin}. Dylan Quoting Federico Dossena (2020-11-09 07:33:58) > Thank you for your reply. > > That's where I got stuck on Windows, I can't get it t

Re: [Mesa-dev] [EXTERNAL] Cross-compile from Linux to Windows

2020-11-10 Thread Dylan Baker
You can build for x86 or x86_64, just open the appropriate command prompt, meson should properly detect whether you're using an x86 or an x86_64 toolchain. Quoting Jesse Natalie (2020-11-09 07:06:31) > Have you tried using Meson on Windows, instead of cross-compiling? If you run > it from a Visua

[Mesa-dev] clover's interface to clang

2020-11-10 Thread Dave Airlie
Hey all (mostly Tom). I've been learning new things today since Matt pushed a patch to clang to remove "-cl-denorms-are-zero" from cc1 options. I thought this was a regression or we should hack things to pass a different flag (which I did locally for testing), but Matt informed me clover is likely