Skip to content

Commit 1f0ade9

Browse files
abueideclaude
andcommitted
refactor(ios): rename devbox_omit_nix_env to ios_setup_native_toolchain
The function is iOS-specific (sets CC/CXX to system clang, unsets Nix build flags). The devbox_ prefix was misleading since it no longer calls devbox shellenv. Also renamed the guard variable to match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent be85fe2 commit 1f0ade9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • plugins/ios/virtenv/scripts/platform

plugins/ios/virtenv/scripts/platform/core.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ ios_resolve_devbox_bin() {
137137
# ============================================================================
138138

139139
# Setup Darwin environment for iOS (use system Xcode/tools instead of Nix)
140-
devbox_omit_nix_env() {
141-
if [ "${DEVBOX_OMIT_NIX_ENV_APPLIED:-}" = "1" ]; then
140+
ios_setup_native_toolchain() {
141+
if [ "${IOS_NATIVE_TOOLCHAIN_APPLIED:-}" = "1" ]; then
142142
return 0
143143
fi
144144

@@ -164,7 +164,7 @@ devbox_omit_nix_env() {
164164
unset SDKROOT
165165
fi
166166

167-
export DEVBOX_OMIT_NIX_ENV_APPLIED=1
167+
export IOS_NATIVE_TOOLCHAIN_APPLIED=1
168168
}
169169

170170
# Setup macOS system PATH and DEVELOPER_DIR
@@ -177,7 +177,7 @@ ios_setup_environment() {
177177
fi
178178

179179
# Setup omit-nix-env
180-
devbox_omit_nix_env
180+
ios_setup_native_toolchain
181181

182182
# Ensure DEVELOPER_DIR is set
183183
if [ "$(uname -s)" = "Darwin" ]; then

0 commit comments

Comments
 (0)