void-packages/srcpkgs/libGL/patches/use-new-llvm-flag-api.patch
2018-03-11 00:35:55 +01:00

22 lines
592 B
Diff

Source: Upstream
Upstream: 5d61fa4e68b7eb6d481a37efdbb35fdce675a6ad
Reason: Fixes compilation with llvm6
--- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -830,7 +830,11 @@ lp_create_builder(LLVMContextRef ctx, enum lp_float_mode float_mode)
llvm::unwrap(builder)->setFastMathFlags(flags);
break;
case LP_FLOAT_MODE_UNSAFE_FP_MATH:
+#if HAVE_LLVM >= 0x0600
+ flags.setFast();
+#else
flags.setUnsafeAlgebra();
+#endif
llvm::unwrap(builder)->setFastMathFlags(flags);
break;
}
--
cgit v1.1