Fix iOS and android compilation errors from nightly build

This commit is contained in:
Aaron Ruiz Mora
2021-05-17 19:41:32 +01:00
committed by GitHub
parent f4106fe73f
commit dd80668da0
2 changed files with 3 additions and 2 deletions
@@ -11,6 +11,7 @@
*/
#include <AzCore/std/string/osstring.h>
#include <AzCore/Utils/Utils.h>
#include <dlfcn.h>
namespace AZ
@@ -39,8 +39,8 @@ namespace AZ
// Append .framework to the name of full path
// Afterwards use the AZ::IO::Path Append function append the filename as a child
// of the framework directory
AZ::IO::FixedMaxPathString fileName = fullPath.Filename().Native();
fullPath.ReplaceFilename(fileName + ".framework");
AZ::IO::FixedMaxPathString fileName{ fullPath.Filename().Native() };
fullPath.ReplaceFilename(AZ::IO::PathView((fileName + ".framework").c_str()));
fullPath /= fileName;
}
}