Fix build and runtime issues on iOS

Merge pull request #355 from aws-lumberyard-dev/LYN-3280
This commit is contained in:
SJ
2021-04-27 13:57:49 -07:00
committed by GitHub
2 changed files with 9 additions and 9 deletions
@@ -57,7 +57,6 @@ namespace AZ
void OnRenderTick() override;
void OnViewportSizeChanged(AzFramework::WindowSize size) override;
DebugConsole m_debugConsole;
bool m_initialized = false;
};
} // namespace LYIntegration
+9 -8
View File
@@ -312,14 +312,15 @@ def create_link(src:pathlib.Path, tgt:pathlib.Path, copy):
tgt = pathlib.Path(tgt)
if copy:
# Remove the exist target
if tgt.is_symlink():
tgt.unlink()
else:
def remove_readonly(func, path, _):
"Clear the readonly bit and reattempt the removal"
os.chmod(path, stat.S_IWRITE)
func(path)
shutil.rmtree(tgt, onerror=remove_readonly)
if tgt.exists():
if tgt.is_symlink():
tgt.unlink()
else:
def remove_readonly(func, path, _):
"Clear the readonly bit and reattempt the removal"
os.chmod(path, stat.S_IWRITE)
func(path)
shutil.rmtree(tgt, onerror=remove_readonly)
logging.debug(f'Copying from {src} to {tgt}')
shutil.copytree(str(src), str(tgt), symlinks=False)