summaryrefslogtreecommitdiff
path: root/graphics/mitsuba2/32bit.diff
blob: 55019bf61eb09f3e5104a703839f802912745d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -Naur mitsuba2-4e7628c/ext/CMakeLists.txt mitsuba2-4e7628c.patched/ext/CMakeLists.txt
--- mitsuba2-4e7628c/ext/CMakeLists.txt	2022-03-07 17:07:27.000000000 -0500
+++ mitsuba2-4e7628c.patched/ext/CMakeLists.txt	2022-03-23 00:07:42.901574553 -0400
@@ -223,9 +223,8 @@
 # tinyformat include path
 set(TINYFORMAT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/tinyformat PARENT_SCOPE)
 
-if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64|AMD64")
   # Build asmjit
-  set(ASMJIT_BUILD_X64 TRUE)
+  set(ASMJIT_BUILD_X86 TRUE)
   if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-inconsistent-missing-override -Wno-undefined-inline")
   endif()
@@ -235,7 +234,6 @@
   if (MSVC)
     target_compile_options(asmjit PRIVATE "/wd4804" "/wd4838")
   endif()
-endif()
 
 # Disable annoying MSVC warnings in rgb2spec build
 if (MSVC)