Skip to content

Commit

Permalink
Clear MSVC SCons cache
Browse files Browse the repository at this point in the history
After we patch the SCons code to find our WINE
installation, clear the MSVC cache so that if SCons
already checked for MSVC, we force it to check again.
  • Loading branch information
benmwebb committed Oct 13, 2020
1 parent 92aadc8 commit 14f9b53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ def _wine_read_reg64(value, hkroot=None):
SCons.Tool.MSCommon.common.read_reg = _wine_read_reg64
else:
SCons.Tool.MSCommon.common.read_reg = _wine_read_reg32
# Clear cache to force detection of MSVC again
try:
import SCons.Tool.MSCommon.vc
except ImportError:
return
setattr(SCons.Tool.MSCommon.vc, '__INSTALLED_VCS_RUN', None)

def _get_python_include(env):
"""Get the directory containing Python.h"""
Expand Down

0 comments on commit 14f9b53

Please sign in to comment.