1
0
OpenShadingLanguage/8682211d0bfe5c4be63a4a003d06037ff9721e66.diff
Hans-Peter Jansen ec3c2d5399 Accepting request 925960 from home:frispete:blender
- Update to version 1.11.15.0
  + Changes for compatibility with OpenImageIO 2.3. #1393 #1388
  + Fix potential crashes (or at least undefined behavior) due to
    missing
  + virtual destructor of internal Symbol type. #1397
- Apply 8682211d0bfe5c4be63a4a003d06037ff9721e66.diff and 1420.diff
  in order to build with LLVM 13.
- Add partio library dependency

OBS-URL: https://build.opensuse.org/request/show/925960
OBS-URL: https://build.opensuse.org/package/show/graphics/OpenShadingLanguage?expand=0&rev=27
2021-10-18 15:00:39 +00:00

34 lines
1.4 KiB
Diff

diff --git a/src/liboslexec/llvm_util.cpp b/src/liboslexec/llvm_util.cpp
index 4bd0dca35..4d0e1752d 100644
--- a/src/liboslexec/llvm_util.cpp
+++ b/src/liboslexec/llvm_util.cpp
@@ -1407,7 +1407,9 @@ LLVM_Util::make_jit_execengine (std::string *err,
options.NoZerosInBSS = false;
options.GuaranteedTailCallOpt = false;
+#if OSL_LLVM_VERSION < 120
options.StackAlignmentOverride = 0;
+#endif
options.FunctionSections = true;
options.UseInitArray = false;
options.FloatABIType = llvm::FloatABI::Default;
@@ -5385,7 +5387,7 @@ void
LLVM_Util::write_bitcode_file (const char *filename, std::string *err)
{
std::error_code local_error;
- llvm::raw_fd_ostream out (filename, local_error, llvm::sys::fs::F_None);
+ llvm::raw_fd_ostream out (filename, local_error, llvm::sys::fs::OF_None);
if (! out.has_error()) {
llvm::WriteBitcodeToFile (*module(), out);
if (err && local_error)
@@ -5447,7 +5449,9 @@ LLVM_Util::ptx_compile_group (llvm::Module* lib_module, const std::string& name,
options.AllowFPOpFusion = llvm::FPOpFusion::Fast;
options.NoZerosInBSS = 0;
options.GuaranteedTailCallOpt = 0;
+#if OSL_LLVM_VERSION < 120
options.StackAlignmentOverride = 0;
+#endif
options.UseInitArray = 0;
llvm::TargetMachine* target_machine = llvm_target->createTargetMachine(