microsoft/openvmm

Public

mirrored fromhttps://github.com/microsoft/openvmmAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
caa9cfa20c9386c8fb076b18903fc8d4374a5e54

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

build_support/underhill_cross/x86_64-underhill-musl-gcc

17lines · modepreview

#!/bin/sh

script_dir="$(dirname "$0")"

# Determine the GCC binary to use.
# - REALGCC env var takes precedence (explicit override)
# - x86_64-linux-gnu-gcc (Ubuntu/Fedora cross-prefix)
# - gcc (Azure Linux / native x86_64 hosts where gcc has no prefix)
if [ -z "$REALGCC" ]; then
    if command -v x86_64-linux-gnu-gcc >/dev/null 2>&1; then
        REALGCC=x86_64-linux-gnu-gcc
    else
        REALGCC=gcc
    fi
fi

MUSL_ARCH=x86_64 MUSL_SYSROOT="$X86_64_SYSROOT" exec "$REALGCC" "$@" -specs "$script_dir/musl-gcc.specs"