Skip to content

Commit 3df1376

Browse files
committed
Fix Linux build
1 parent 431735a commit 3df1376

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

RadeonRays/RadeonRays.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ project "RadeonRays"
3434

3535
excludes {"../RadeonRays/src/device/embree*"}
3636
if os.is("macosx") then
37-
buildoptions "-std=c++11 -stdlib=libc++"
37+
buildoptions "-std=c++14 -stdlib=libc++"
3838
filter { "kind:SharedLib", "system:macosx" }
3939
linkoptions { '-Wl,-install_name', '-Wl,@loader_path/%{cfg.linktarget.name}' }
4040

4141
elseif os.is("linux") then
42-
buildoptions "-std=c++11 -fPIC"
42+
buildoptions "-std=c++14 -msse4.2 -fPIC"
4343
linkoptions {"-Wl,--no-undefined"}
44+
links {"pthread"}
4445

4546
--get API version from header.
4647
local handle = io.popen("grep -r RADEONRAYS_API_VERSION include/radeon_rays.h | cut -d \" \" -f 3")

RadeonRays/src/accelerator/bvh2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace RadeonRays
7070
// Max triangles per leaf
7171
kMaxLeafPrimitives = 1u,
7272
// Threshold number of primitives to disable SAH split
73-
kMinSAHPrimitives = 32u,
73+
kMinSAHPrimitives = 8u,
7474
// Maximum stack size for non-parallel builds
7575
kStackSize = 1024u
7676
};

0 commit comments

Comments
 (0)