From 10f997a414f875212d41964fdea503f89a95f87f Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Thu, 2 Dec 2021 12:30:45 +0100 Subject: Fix _is_in_vstudio caching --- xmake/modules/core/tools/cl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index b8beceac1..a519d1618 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -378,7 +378,7 @@ end function _is_in_vstudio() local is_in_vstudio = _g._IS_IN_VSTUDIO if is_in_vstudio == nil then - is_in_vstudio = os.getenv("XMAKE_IN_VSTUDIO") + is_in_vstudio = os.getenv("XMAKE_IN_VSTUDIO") or false _g._IS_IN_VSTUDIO = is_in_vstudio end return is_in_vstudio -- cgit v1.3.1