Skip to content
Snippets Groups Projects
Commit 893bda38 authored by alice's avatar alice
Browse files

community/dotnet6-build: mask fstack-clash-protection outside of x86

parent b0cfcd49
No related branches found
No related tags found
No related merge requests found
...@@ -306,13 +306,19 @@ build() { ...@@ -306,13 +306,19 @@ build() {
done done
local args="$args /p:TargetRid=$ID.$VERSION_ID-$_dotnet_arch" local args="$args /p:TargetRid=$ID.$VERSION_ID-$_dotnet_arch"
case "$CARCH" in
x86*) ;;
*)
# clang doesn't implement this outside of x86, and it causes a later configure to fail
export CFLAGS="${CFLAGS/-fstack-clash-protection}"
export CXXFLAGS="${CXXFLAGS/-fstack-clash-protection}"
;;
esac
./build.sh \ ./build.sh \
--with-sdk "$_cli_root" \ --with-sdk "$_cli_root" \
--with-packages "$_artifactsdir" \ --with-packages "$_artifactsdir" \
-- $args || { -- $args
find . -name "CMakeConfigureLog.yaml" -type f -exec sh -c 'echo logfile: $1; cat $1' - {} \;
return 1
}
} }
check() { check() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment