From 34521e7d509fa8e31da6065b44bbbca8a5c4cfc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Thu, 28 Oct 2021 13:10:39 +0200 Subject: [PATCH] Update xmake.lua --- xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake.lua b/xmake.lua index b94764157..5d06794c8 100644 --- a/xmake.lua +++ b/xmake.lua @@ -243,8 +243,8 @@ rule("embed_resources") import("core.base.option") if xmake.version():ge("2.5.9") then import("utils.progress") - else - import("utils.progress", { try = true }) or import("private.utils.progress") + elseif not import("utils.progress", { try = true }) then + import("private.utils.progress") end local function GenerateEmbedHeader(filepath, targetpath)