Skip to content

Commit 46f53a0

Browse files
authored
Merge pull request #34854 from keith/ks/nfc-remove-unnecessary-constant
[NFC] Remove unnecessary constant
2 parents 3211817 + de37324 commit 46f53a0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

utils/build-script

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ from swift_build_support.swift_build_support.toolchain import host_toolchain
5050
# -----------------------------------------------------------------------------
5151
# Constants
5252

53-
# TODO: Remove this constant, it's really not helpful.
54-
HOME = os.environ.get("HOME", "/")
55-
5653
# These versions are community sourced. At any given time only the Xcode
5754
# version used by Swift CI is officially supported. See ci.swift.org
5855
_SUPPORTED_XCODE_BUILDS = [
@@ -1169,7 +1166,8 @@ def main_preset():
11691166
"build-presets.ini")
11701167
]
11711168

1172-
user_presets_file = os.path.join(HOME, '.swift-build-presets')
1169+
user_presets_file = os.path.join(os.getenv("HOME", "/"),
1170+
'.swift-build-presets')
11731171
if os.path.isfile(user_presets_file):
11741172
args.preset_file_names.append(user_presets_file)
11751173

0 commit comments

Comments
 (0)