[squeak-dev] The Trunk: ReleaseBuilder-eem.172.mcz
marcel.taeumel at hpi.de
Sat Jan 6 08:12:50 UTC 2018
what about a method like "ReleaseBuilder >> #releaseLocally"? Then put both into a category like "testing"? Would be easier to change than a class-inst-var.
Am 06.01.2018 05:09:15 schrieb Eliot Miranda <eliot.miranda at gmail.com>:
Hi Marcel, Hi David,
in modifying the ReleaseBuilder to allow the SistaV1 bytecode set to be selected I'm not happy having to wait until all the checking before prompting to use the bytecode set. One could move the query earlier, into setPreferences, but this means that the bytecode set would be in use before the Compiler recompileAll step, and that isn't desirable while debugging the byte code set. Would you object to me adding an instance variable to ReleaseBuilder class, useNewBytecodeSet or some such, which would be set in setPreferences and read in recompileAll?
On Fri, Jan 5, 2018 at 7:20 PM, <commits at source.squeak.org [mailto:commits at source.squeak.org]> wrote:
Eliot Miranda uploaded a new version of ReleaseBuilder to project The Trunk:
==================== Summary ====================
Time: 5 January 2018, 7:20:47.150059 pm
Allow the ReleaseBuilder to query if the SistaV1 bytecode set should be the default in a new release.
=============== Diff against ReleaseBuilder-mt.171 ===============
Item was changed:
----- Method: ReleaseBuilder class>>prepareSourceCode (in category 'preparing') -----
"Update code. Remove foreign packages."
MCMcmUpdater defaultUpdateURL: self buildRepository description.
MCMcmUpdater updateMissingPackages: true.
TestCase new ensureInternetConnectionTo: self buildRepository description.
"Flush all caches. If a previous download failed this is often helpful"
"Save the current default updater, clear the registry, and re-register the current updater"
[MCMcmUpdater default doUpdate: false. "non-interactive"]
on: MCEmptyVersion do: [:warning | warning resume].
- Compiler recompileAll.!
Item was added:
+ ----- Method: ReleaseBuilder class>>recompileAll (in category 'scripts - support') -----
+ (Smalltalk classNamed: #EncoderForSistaV1) ifNotNil:
+ CompiledCode preferredBytecodeSetEncoderClass ~~ sistaBytecodeSet ifTrue:
+ [(Project uiManager
+ confirm: 'Do you want to make it the default in this release?'
+ orCancel: [false]
+ title: 'The SistaV1 Bytecode Set Is Available') ifTrue:
+ installSecondaryBytecodeSet: sistaBytecodeSet;
+ preferredBytecodeSetEncoderClass: sistaBytecodeSet]]].
+ Compiler recompileAll!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev