Skip to content

Commit cff9b37

Browse files
committed
[NFC] Remove unnecessary constant
1 parent 3321047 commit cff9b37

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

utils/build-script

Lines changed: 1 addition & 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 = [
@@ -1168,7 +1165,7 @@ def main_preset():
11681165
"build-presets.ini")
11691166
]
11701167

1171-
user_presets_file = os.path.join(HOME, '.swift-build-presets')
1168+
user_presets_file = os.path.join(os.getenv("HOME", "/"), '.swift-build-presets')
11721169
if os.path.isfile(user_presets_file):
11731170
args.preset_file_names.append(user_presets_file)
11741171

0 commit comments

Comments
 (0)