Skip to content

Commit 6d92486

Browse files
committed
[build-script] Add SWIFT_ prefix to USE_SCCACHE env var
1 parent e01893c commit 6d92486

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/DevelopmentTips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $ sccache --start-server
3636
$ ./swift/utils/build-script MY_ARGS --sccache
3737
```
3838

39-
If you want to always use sccache, you can `export USE_SCCACHE=1` and the build script will pick it up.
39+
If you want to always use sccache, you can `export SWIFT_USE_SCCACHE=1` and the build script will pick it up.
4040

4141
Given the size of artifacts generated, you might also want to bump the cache size from the default 10GB to something larger, say by putting `export SCCACHE_CACHE_SIZE="50G"` in your dotfile(s).
4242

utils/build-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ def parse_preset_args():
10771077
help="use sccache",
10781078
action=argparse.actions.StoreTrueAction,
10791079
nargs=argparse.Nargs.OPTIONAL,
1080-
default=os.environ.get('USE_SCCACHE') == '1')
1080+
default=os.environ.get('SWIFT_USE_SCCACHE') == '1')
10811081
parser.add_argument(
10821082
"--cmake-c-launcher",
10831083
help="the absolute path to set CMAKE_C_COMPILER_LAUNCHER",

utils/build_swift/build_swift/driver_arguments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def create_argument_parser():
388388
default=os.environ.get('USE_DISTCC') == '1',
389389
help='use distcc in pump mode')
390390
option('--sccache', toggle_true,
391-
default=os.environ.get('USE_SCCACHE') == '1',
391+
default=os.environ.get('SWIFT_USE_SCCACHE') == '1',
392392
help='use sccache')
393393
option('--enable-asan', toggle_true,
394394
help='enable Address Sanitizer')

0 commit comments

Comments
 (0)