Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
van800 committed Mar 3, 2025
1 parent a55ce71 commit b3df72f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,13 +1275,13 @@ def get_dependencies(file, env, exts, headers, sources, others):
else:
common_build_prefix[0] = common_build_prefix[0]

cmd = " ^& ".join(common_build_prefix + [" ".join([commands] + common_build_postfix)])
cmd = " ".join(common_build_prefix + [" ".join([commands] + common_build_postfix)])
props_template = props_template.replace("%%BUILD%%", cmd)

cmd = " ^& ".join(common_build_prefix + [" ".join([commands] + cmd_rebuild)])
cmd = " ".join(common_build_prefix + [" ".join([commands] + cmd_rebuild)])
props_template = props_template.replace("%%REBUILD%%", cmd)

cmd = " ^& ".join(common_build_prefix + [" ".join([commands] + cmd_clean)])
cmd = " ".join(common_build_prefix + [" ".join([commands] + cmd_clean)])
props_template = props_template.replace("%%CLEAN%%", cmd)

with open(
Expand Down
8 changes: 4 additions & 4 deletions platform/windows/msvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ def get_configurations():


def get_build_prefix(env):
batch_file = methods.find_visual_c_batch_file(env)
if not env.msvc:
return ["echo Starting SCons &"]
batch_file = methods.find_visual_c_batch_file(env)
return [
"echo Starting SCons && cmd /V /C",
"set "plat=$(PlatformTarget)"",
"(if "$(PlatformTarget)"=="x64" (set "plat=x86_amd64"))",
f"call "{batch_file}" !plat!",
"^& set "plat=$(PlatformTarget)"",
"^& (if "$(PlatformTarget)"=="x64" (set "plat=x86_amd64"))",
f"^& call "{batch_file}" !plat!",
]

0 comments on commit b3df72f

Please # to comment.