Skip to content

Commit

Permalink
add SCONS_HOME to SCons env vars
Browse files Browse the repository at this point in the history
This is necessary for SCons to generate the MSVS project files. See
#322 (comment).
  • Loading branch information
garfieldnate committed Jan 6, 2023
1 parent 30cc018 commit e568ca5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ from SCons.Node.Alias import default_ans
import time

# Add the current directory to the path so we can from build_support
sys.path.append(Dir('.').srcnode().abspath)
script_dir = Dir('.').srcnode().abspath
sys.path.append(script_dir)
from build_support.tcl import prepare_for_compiling_with_tcl

join = os.path.join
Expand Down Expand Up @@ -157,6 +158,8 @@ env = Environment(
SML_TCL_ALIAS = SML_TCL_ALIAS,
# indentation for log formatting
INDENT = ' ',
# used for generating the MSVS project
SCONS_HOME=os.path.join(script_dir, 'scons', 'scons-local-4.4.0')
)

env.AddMethod(prepare_for_compiling_with_tcl, 'PrepareForCompilingWithTcl')
Expand Down

0 comments on commit e568ca5

Please sign in to comment.