Skip to content

Commit

Permalink
Don't search for GCC_INSTALL_DIR if sysroot doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
xtremekforever committed Jan 12, 2025
1 parent b7f95d4 commit c87d5b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion swift-define
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ SWIFT_BUILD_CONFIGURATION="${SWIFT_BUILD_CONFIGURATION:=Release}"
SWIFTPM_CONFIGURATION="${SWIFTPM_CONFIGURATION:=release}"
SWIFT_PACKAGE_SRCDIR="${SWIFT_PACKAGE_SRCDIR:=$SRC_ROOT/swift-hello}"
SWIFT_PACKAGE_BUILDDIR="${SWIFT_PACKAGE_BUILDDIR:=$SWIFT_PACKAGE_SRCDIR/.build}"
GCC_INSTALL_DIR=${GCC_INSTALL_DIR:=$(dirname $(find ${STAGING_DIR} -name crtbegin.o))}
if [ -d ${STAGING_DIR} ]; then
GCC_INSTALL_DIR=$(dirname $(find ${STAGING_DIR} -name crtbegin.o))
else
GCC_INSTALL_DIR=${STAGING_DIR}
fi

# Build Paths
LLVM_SRCDIR=$SRC_ROOT/downloads/llvm-project
Expand Down

0 comments on commit c87d5b9

Please sign in to comment.