Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only one job on appveyor
  • Loading branch information
LeonarddeR committed Jan 13, 2022
commit af8f88b81a9a99d68d7a52e79ebffd6aef52b916
2 changes: 2 additions & 0 deletions appveyor/scripts/setSconsArgs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ if(!$env:APPVEYOR_PULL_REQUEST_NUMBER) {
$sconsArgs += " certFile=appveyor\authenticode.pfx certTimestampServer=http://timestamp.digicert.com"
}
$sconsArgs += " version_build=$env:APPVEYOR_BUILD_NUMBER"
# Use only 1 concurrent job when building
$sconsArgs += "-j1"
# We use cmd to run scons because PowerShell throws exceptions if warnings get dumped to stderr.
# It's possible to work around this, but the workarounds have annoying side effects.
Set-AppveyorBuildVariable "sconsOutTargets" $sconsOutTargets
Expand Down
3 changes: 2 additions & 1 deletion sconstruct
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ env.Decider('MD5-timestamp')

# Make sure to run the build on multiple threads so it runs faster
env.SetOption('num_jobs', multiprocessing.cpu_count())
print(f"Building using {env.GetOption('num_jobs')} jobs")
realNumJobs = env.GetOption('num_jobs')
print(f"Building using {realNumJobs} job{'s' if realNumJobs != 1 else ''}")

#Make our recursiveCopy function available to any script using this environment
env.AddMethod(recursiveCopy)
Expand Down