diff --git a/x11/library/mesa/actions.py b/x11/library/mesa/actions.py index aa12ff4cd5..25fd893608 100644 --- a/x11/library/mesa/actions.py +++ b/x11/library/mesa/actions.py @@ -48,11 +48,16 @@ def setup(): if get.buildTYPE() == "emul32": options += " -Dlmsensors=disabled --native-file crossfile.ini -Dllvm_libdir=/usr/lib32 -Dzstd=disabled" - shelltools.export("CC", "gcc -m32") - shelltools.export("CXX", "g++ -m32") + shelltools.export("CC", "clang -m32") + shelltools.export("CXX", "clang++ -m32") + #shelltools.export("CC", "gcc -m32") + #shelltools.export("CXX", "g++ -m32") shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig") shelltools.export("LLVM_CONFIG","/usr/bin/llvm-config-32") - else: options += " -Dgallium-omx=bellagio -Dlmsensors=enabled -Dzstd=enabled" + else: + shelltools.export("CC", "clang") + shelltools.export("CXX", "clang++") + options += " -Dgallium-omx=bellagio -Dlmsensors=enabled -Dzstd=enabled" pisitools.ldflags.add("-fuse-ld=lld") mesontools.configure(options)