Fix building Assimp on Linux
Versioned clang++ symlinks are not available on Arch
This commit is contained in:
@@ -155,11 +155,12 @@ namespace Flax.Deps.Dependencies
|
|||||||
{
|
{
|
||||||
{ "CC", "clang-" + Configuration.LinuxClangMinVer },
|
{ "CC", "clang-" + Configuration.LinuxClangMinVer },
|
||||||
{ "CC_FOR_BUILD", "clang-" + Configuration.LinuxClangMinVer },
|
{ "CC_FOR_BUILD", "clang-" + Configuration.LinuxClangMinVer },
|
||||||
{ "CXX", "clang++-" + Configuration.LinuxClangMinVer },
|
{ "CXX", "clang-" + Configuration.LinuxClangMinVer },
|
||||||
{ "CMAKE_BUILD_PARALLEL_LEVEL", CmakeBuildParallel },
|
{ "CMAKE_BUILD_PARALLEL_LEVEL", CmakeBuildParallel },
|
||||||
};
|
};
|
||||||
|
|
||||||
// Build for Linux
|
// Build for Linux
|
||||||
|
File.Delete(Path.Combine(root, "CMakeCache.txt"));
|
||||||
RunCmake(root, platform, architecture, " -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF " + globalConfig, envVars);
|
RunCmake(root, platform, architecture, " -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF " + globalConfig, envVars);
|
||||||
Utilities.Run("make", null, null, root, Utilities.RunOptions.ThrowExceptionOnError, envVars);
|
Utilities.Run("make", null, null, root, Utilities.RunOptions.ThrowExceptionOnError, envVars);
|
||||||
configHeaderFilePath = Path.Combine(root, "include", "assimp", "config.h");
|
configHeaderFilePath = Path.Combine(root, "include", "assimp", "config.h");
|
||||||
@@ -170,6 +171,7 @@ namespace Flax.Deps.Dependencies
|
|||||||
case TargetPlatform.Mac:
|
case TargetPlatform.Mac:
|
||||||
{
|
{
|
||||||
// Build for Mac
|
// Build for Mac
|
||||||
|
File.Delete(Path.Combine(root, "CMakeCache.txt"));
|
||||||
RunCmake(root, platform, architecture, " -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF " + globalConfig);
|
RunCmake(root, platform, architecture, " -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF " + globalConfig);
|
||||||
Utilities.Run("make", null, null, root, Utilities.RunOptions.ThrowExceptionOnError);
|
Utilities.Run("make", null, null, root, Utilities.RunOptions.ThrowExceptionOnError);
|
||||||
configHeaderFilePath = Path.Combine(root, "include", "assimp", "config.h");
|
configHeaderFilePath = Path.Combine(root, "include", "assimp", "config.h");
|
||||||
|
|||||||
Reference in New Issue
Block a user