summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorDavis Goodin <dagood@users.noreply.github.com>2017-03-06 11:40:56 -0600
committerGitHub <noreply@github.com>2017-03-06 11:40:56 -0600
commit61619268805bace6b730de1237fd3c7545eb99b5 (patch)
tree88ab014e32723820014e813e22a7b5a2b071e8e9 /build.sh
parentccf4cb343f6b9f47fc4b08d8811ead1caa3c706c (diff)
downloadcoreclr-61619268805bace6b730de1237fd3c7545eb99b5.tar.gz
coreclr-61619268805bace6b730de1237fd3c7545eb99b5.tar.bz2
coreclr-61619268805bace6b730de1237fd3c7545eb99b5.zip
Add stripSymbols argument; refactor symbol package build (#9664)
* Add argument to explicitly enable symbol stripping * Refactor symbol package build * Remove unnecessary native file distinctions * Remove unnecessary WindowsSymbolFile step
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index 7caaa75761..778ad63346 100755
--- a/build.sh
+++ b/build.sh
@@ -19,7 +19,7 @@ fi
usage()
{
- echo "Usage: $0 [BuildArch] [BuildType] [verbose] [coverage] [cross] [clangx.y] [ninja] [configureonly] [skipconfigure] [skipnative] [skipmscorlib] [skiptests] [cmakeargs] [bindir]"
+ echo "Usage: $0 [BuildArch] [BuildType] [verbose] [coverage] [cross] [clangx.y] [ninja] [configureonly] [skipconfigure] [skipnative] [skipmscorlib] [skiptests] [stripsymbols] [cmakeargs] [bindir]"
echo "BuildArch can be: x64, x86, arm, armel, arm64"
echo "BuildType can be: debug, checked, release"
echo "coverage - optional argument to enable code coverage build (currently supported only for Linux and OSX)."
@@ -44,6 +44,7 @@ usage()
echo " using all processors^)."
echo "-officialbuildid=^<ID^>: specify the official build ID to be used by this build."
echo "-Rebuild: passes /t:rebuild to the build projects."
+ echo "stripSymbols - Optional argument to strip native symbols during the build."
echo "skipgenerateversion - disable version generation even if MSBuild is supported."
echo "cmakeargs - user-settable additional arguments passed to CMake."
echo "bindir - output directory (defaults to $__ProjectRoot/bin)"
@@ -611,7 +612,7 @@ while :; do
__CrossBuild=1
;;
- portablelinux)
+ portablelinux)
if [ "$__BuildOS" == "Linux" ]; then
__PortableLinux=1
else
@@ -621,8 +622,12 @@ while :; do
;;
verbose)
- __VerboseBuild=1
- ;;
+ __VerboseBuild=1
+ ;;
+
+ stripsymbols)
+ __cmakeargs="$__cmakeargs -DSTRIP_SYMBOLS=true"
+ ;;
clang3.5)
__ClangMajorVersion=3