Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
van800 committed Mar 4, 2025
1 parent f0acf94 commit bf3ffb2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,9 +1271,9 @@ def get_dependencies(file, env, exts, headers, sources, others):

commands = "scons"
if len(common_build_prefix) == 0:
commands = commands
commands = "echo Starting SCons &" + commands
else:
common_build_prefix[0] = common_build_prefix[0]
common_build_prefix[0] = "echo Starting SCons &" + common_build_prefix[0]

cmd = " ".join(common_build_prefix + [" ".join([commands] + common_build_postfix)])
props_template = props_template.replace("%%BUILD%%", cmd)
Expand Down
2 changes: 1 addition & 1 deletion platform/linuxbsd/msvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ def get_configurations():


def get_build_prefix(env):
return ["echo Starting SCons &"]
return []
2 changes: 1 addition & 1 deletion platform/macos/msvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ def get_configurations():

# results are not needed on Mac and Linux
def get_build_prefix(env):
return ["echo Starting SCons &"]
return []
4 changes: 2 additions & 2 deletions platform/windows/msvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ def get_configurations():

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

0 comments on commit bf3ffb2

Please sign in to comment.