summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Boemer <sbomer@gmail.com>2019-01-19 00:11:25 (GMT)
committerGitHub <noreply@github.com>2019-01-19 00:11:25 (GMT)
commitb2c6dd4eb427caf7cb852998076b0b1543447a28 (patch)
treed1d3e58d01596319ea2a02df3d38b7f9bf57c033
parent0c6ad4c8d3869b54364b15f21b8b6b5a6fe7a94a (diff)
downloadcoreclr-b2c6dd4eb427caf7cb852998076b0b1543447a28.zip
coreclr-b2c6dd4eb427caf7cb852998076b0b1543447a28.tar.gz
coreclr-b2c6dd4eb427caf7cb852998076b0b1543447a28.tar.bz2
Strip symbols on unix in release builds (#22083)
Fixes https://github.com/dotnet/coreclr/issues/22082
-rw-r--r--eng/build-job.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/eng/build-job.yml b/eng/build-job.yml
index f0b8559..53982bd 100644
--- a/eng/build-job.yml
+++ b/eng/build-job.yml
@@ -38,6 +38,12 @@ jobs:
variables:
- name: osIdentifier
value: ${{ parameters.osIdentifier }}
+ - name: stripSymbolsArg
+ value: ''
+ # Strip symbols only on the release build
+ - ${{ if eq(parameters.buildConfig, 'Release') }}:
+ - name: stripSymbolsArg
+ value: '-stripsymbols'
- name: portableBuildArg
value: ''
# Ensure that we produce os-specific packages for the following distros:
@@ -78,7 +84,7 @@ jobs:
# Build
- ${{ if ne(parameters.osGroup, 'Windows_NT') }}:
- - script: ./build.sh $(buildConfig) $(archType) $(crossArg) -skiptests -skipnuget $(clangArg)
+ - script: ./build.sh $(buildConfig) $(archType) $(crossArg) -skiptests -skipnuget $(clangArg) $(stripSymbolsArg)
displayName: Build product
${{ if eq(parameters.osGroup, 'FreeBSD') }}:
env: