summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2021-12-02 12:30:45 +0100
committerJérôme Leclercq <[email protected]>2021-12-02 12:30:45 +0100
commit10f997a414f875212d41964fdea503f89a95f87f (patch)
tree58039798002fcea79ba65fed2f0ac8ffa26430f5 /xmake/modules/core/tools/cl.lua
parent5bd0628dace1c00671055e03d26b8de180e223ac (diff)
Fix _is_in_vstudio caching
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua2
1 files changed, 1 insertions, 1 deletions
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