Skip to content

Commit

Permalink
Bump LINKER_CACHE_SALT and compiler.BUILT_BY for good measure.
Browse files Browse the repository at this point in the history
This will trigger recompilation and relinking, which should help prevent
various stale caching issues, e.g. meteor#7977.
  • Loading branch information
Ben Newman committed Nov 8, 2016
1 parent 940cc4f commit 4ada5c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/isobuild/compiler-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import { isTestFilePath } from './test-files.js';
// Cache the (slightly post-processed) results of linker.fullLink.
const CACHE_SIZE = process.env.METEOR_LINKER_CACHE_SIZE || 1024*1024*100;
const CACHE_DEBUG = !! process.env.METEOR_TEST_PRINT_LINKER_CACHE_DEBUG;
const LINKER_CACHE_SALT = 11; // Increment this number to force relinking.
const LINKER_CACHE_SALT = 12; // Increment this number to force relinking.
const LINKER_CACHE = new LRU({
max: CACHE_SIZE,
// Cache is measured in bytes. We don't care about servePath.
Expand Down
2 changes: 1 addition & 1 deletion tools/isobuild/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var compiler = exports;
// dependencies. (At least for now, packages only used in target creation (eg
// minifiers) don't require you to update BUILT_BY, though you will need to quit
// and rerun "meteor run".)
compiler.BUILT_BY = 'meteor/24';
compiler.BUILT_BY = 'meteor/25';

// This is a list of all possible architectures that a build can target. (Client
// is expanded into 'web.browser' and 'web.cordova')
Expand Down

0 comments on commit 4ada5c8

Please sign in to comment.