summaryrefslogtreecommitdiff
path: root/build.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-09-13Enable end to end Alpine build (#13966)Jan Vorlicek1-4/+8
This change enables full end to end build of coreclr including managed code on Alpine Linux.
2017-09-13Change how numProc is derived on Linux (#13909)Jarret Shook1-1/+3
Before the decision for numProcs to run in parallel for runtests.sh was based on _NPROCESSORS_ONLN which harware which attempts to save power (eg arm(64)) this number may be < numProcs.
2017-08-30Remove -sequential build-flag (#13658)Omair Majid1-2/+0
The flag is not implemented anywhere and is completely ignored. Remove it form various help notices too. Fixes #12035
2017-08-17Enable RedHat 6 in coreclr master (#13315)smile21prc1-9/+9
* Enable RedHat 6 in coreclr master Enable RedHat 6 in coreclr master. This is identical as the approved PR to enable RedHat 6 in coreclr release/2.0.0: https://github.com/dotnet/coreclr/pull/13301 * Correct Rid to match /src/.nuget/dirs.props Correct Rid to match /src/.nuget/dirs.props * Update dockertag and add logic to detect RHEL6 in init-tools.sh Update dockertag and add logic to detect RHEL6 in init-tools.sh * Port changes from Release/2.0.0 to fix coreclr RHEL 6 official runs. Port changes from Release/2.0.0 to fix coreclr RHEL 6 official runs. * Remove empty quotes. Remove empty quotes.
2017-08-15Use dashes for build options (#13353)Vance Morrison1-70/+70
* Fix IndexOutOfRangeException in PayloadNames property If you pass an null payload using Write<T>, and in the EventListener then call PayloadNames, it will throw an IndexOutOfRangeException. It should just return null. This fixes this. * To be consistant with the other build.cmd files use - for options * Update docs to track change in option convention * Updated Unix script to use - for options. * Fix build break * Fix Whitespace (review feedback) * Another fix
2017-08-11Log the crossgen command in build.sh.jashook1-0/+1
This makes it easier to copy paste the commnand if it fails.
2017-08-01Enable build of crosscomponent for armel (#11066)Hyung-Kyu Choi1-2/+2
* Enable build of crosscomponent for armel Enable build of crosscomponent for armel in addition to arm Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> * Fix typo Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
2017-07-31Enable RHEL6 and CentOS 6 RID detection in build (#13101)Jan Vorlicek1-5/+12
This change adds RHEL6 and CentOS 6 RID detection to build.sh. These distros don't have the /etc/os-release file and so we need to use another source - the /etc/redhat-release file
2017-07-28Fix Alpine build (#13052)Jan Vorlicek1-2/+3
This change fixes CoreCLR build on Alpine Linux
2017-07-11Fix build.sh break by poorly timed dotnet first time experience (#12727)Daniel Podder1-2/+2
Depending on machine state, calling `dotnet` to dump the PGO and IBC package version might trigger the first time experience message. This breaks build.sh where it tries to parse the package version from `dotnet msbuild`'s output. The fix is to disable the first time experience path in these two invocations of `dotnet`.
2017-07-10Fix optdata bootstrap test script & Linux skiprestoreoptdata behavior (#12541)Daniel Podder1-5/+8
Fixes #12171. * bootstrap.py was printing an improperly-cased path to put PGO/IBC training data, which breaks on case-sensitive file systems, i.e., on Linux. * On Linux, `skiprestoreoptdata` was improperly skipping PGO even if optdata was already present due to some of the conditional checks in build.sh. This cleans that up to better match the intent of the switch, and to fix Linux behavior to better match Windows.
2017-07-07Fix skipcrossgen option (#12650)Jonghyun Park1-0/+1
* Fix skipcrossgen option * Use return instead of exit
2017-07-05Add skipcrossgen optionJonghyun Park1-0/+10
2017-06-28Add a flag to build.{sh,cmd} to disable PGO.Pat Gavlin1-2/+9
This is helpful when performing JIT throughput measurements.
2017-06-16Disable Portable RID build for Tizen (#12292)Hyung-Kyu Choi1-5/+5
Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
2017-06-13Keep previous cmake arguments when using buildstandalonegc (#12108)Omair Majid1-1/+1
Currently, using buildstandalonegc makes ./build.sh discard any previous values of __cmakearg set explicitly or implicitly. Preserve those arguments. Without this fix, the following invocations behave differently: $ ./build.sh ignorewarnings buildstandalonegc verbose $ ./build.sh buildstandalonegc ignorewarnings verbose
2017-06-09Allow users to set the number of build processes (#12188)Jonghyun Park1-13/+23
* Allow users to set the number of build processes * Add a command-line option * Use common initialization style (use __NumProc and extract initialization from build_native) * Set __NumProc before argument parsing (and replace NumProc with __NumProc)
2017-06-08First steps for generating nuget packages for ARM64/Android. (#10286)Cyd Haselton1-3/+9
* First steps for generating nuget packages for ARM64/Android. Adds Android RIDS and related conditionals to appropriate files * Additional changes for Android package build * Revert addition of Android to supported packages * Allow Android .nuget package build Adding runtime.Android files for package generation Adding TODO for reliable generation of __DistroRid for Android * Added/corrected logic for detecting __DistroRid at commandline Removed hack and TODO * Removed newline * Revert unintentional change to osx rid * Removed commenting of __DistroRid initialization * Latest fixes for __DistroRid cmdline detection Removed __DistroRid initialization (clobbers value set at cmdline) Removed echo test of __DistroRid in generate nuget pkg function (Hopefully) fixed cross-build os-release detection * Removed android.21-arm from supported RIDs Removed arm32 from supported RIDs until test build can be done or CI for arm32 added (?) * Fixes for package generation for android Modified build-android-rootfs.sh so it would generate file w/platform info Reverted all prior changes to initTargetDistroRid, added new android platform detection * Fixed conditional for Android * Added platform generation for Android portable build, if ever needed * Added information about android_platform Added help info about android_platform file Added TODO for dynamic generation of RID based on $__ApiLevel and $__BuildArch * Syntax cleanup for build.sh Removed extra space in initTargetDistroRid() logic * Recommended review changes removed Android-specific runtime files for packaging added conditional to have Android use Linux runtime files * Updated topic branch from master, resolving SPC.ni.dll file nuget pkg issue * ericstj review changes Fixed accidental fedora version change Fixed indenting * Removed TODO comment; logic already in place, added in earlier commit * Removed Android OfficialBuildRID
2017-06-07Merge pull request #12102 from tmds/any-linuxMatt Ellis1-33/+14
build.sh: fall back to portable Linux when Linux host has unknown rid
2017-06-07Only restore optdata for release builds (#12136)Daniel Podder1-0/+3
Avoid restoring optdata during a non-release build to minimize work done by build.sh/cmd. Fix #12126
2017-06-07Fix FreeBSD buildTom Deseyn1-8/+14
2017-06-07build{,-test}.sh: revert and add list of unsupported ridsTom Deseyn1-41/+19
2017-06-06build.sh: fall back to portable linux when Linux host has unknown ridTom Deseyn1-38/+35
2017-06-02Add support for not breaking *nix build on warnings (#12039)Omair Majid1-6/+19
Add a build flag to make -Werror optional and let the build continue even in the presence of warnings. This option is very useful for anyone compiling with a different (version of the) compiler. A different (version of the) compiler may produce a different set of warnings and a piece of code that compiles without warnings may emit warnings with a different (version of the) compiler. Resolves https://github.com/dotnet/coreclr/issues/8586
2017-06-02Merge pull request #11699 from swgillespie/local-gc-branch-mergeSean Gillespie1-1/+1
Integration from dev/local-gc into master
2017-06-01Fix optdata restore functionality (#11935)Daniel Podder1-7/+10
Fix optdata restore functionality (#11935) Bring back optdata restore functionality following the move to 2.0 BuildTools and csproj-based CLI. Disable a harmless warning that broke the Linux build when consuming PGO counts due to -Werr. Fix #11796 for master
2017-06-01Support msbuildonunsupportedplatform on non-x64 architecture (#11966)Jonghyun Park1-3/+1
2017-06-01[Local GC] Scaffolding for loading a standalone GC (#11242)Sean Gillespie1-1/+1
* Configure the build system to build a CoreCLR capable of loading a standalone GC * Proto-implementation of dynamic GC loading * Build the GC with the VM's CMakeLists when doing a non-standalone build of the GC * [Local GC] Introduce a new feature define, FEATURE_STANDALONE_GC_ONLY, to be used by the CI to explicitly test local GC dynamic loading code paths * Fix the FEATURE_STANDALONE_GC_ONLY build for unix linkers * Rebase against master * Code review feedback: use the existing Unix exports file
2017-05-31Default to portable build in dev and official builds (#11985)Gaurav Khanna1-4/+13
2017-05-22Revert "Fixed tests build on Linux"Russ Keldorph1-2/+3
2017-05-19Test build fixes for LinuxRoman Artemev1-3/+2
2017-05-06Log Events to EventPipe on Linux (#11433)Brian Robbins1-0/+32
* Implement the EventPipe object model for providers and events. * Plumb Runtime Events into EventPipe (#11145) Plumb runtime ETW events into the EventPipe. * Fix bug where all events except for SampleProfiler events were never enabled. * Plumb EventPipeEventInstance through the EventPipe. * Implement EventPipeFile and FastSerializer. * Write event contents to the EventPipeFile. * Only build EventPipe on Linux. * Conditionally add a sentinel value marking event end. * Send SampleProfiler events to the EventPipeFile. * Fix provider ID printing to JSON file. * Write the start date/time, timestamp, and clock frequency into the trace file. * Support unloading of EventPipeProviders. * Handle failure cases when we can't walk the stack or are shutting down. * Fix a bug where we pass a null src pointer to memcpy.
2017-04-27[WIP] Enable binding to CoreLib as NI image (#11040)Gaurav Khanna1-2/+2
Enable binding to CoreLib as NI image
2017-04-26Enable build with clang 4.0 (#11226)Jan Vorlicek1-0/+5
This change enables build with clang 4.0 and fixes a bunch of new errors that the stricter compiler was reporting.
2017-04-25[ARM32] clang 3.9 as a default for ARM cross build (#11064)Hyung-Kyu Choi1-2/+15
* [ARM32] clang 3.9 as a default for ARM cross build Use clang 3.9 as a default compiler for ARM cross build * Both arm and armel will be built using clang 3.9 as a default * ARM CI will use clang 3.9 as a default * ARM pipieline build will use clang 3.9 as a default Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> * [ARM32] Update docs describing clang-3.9 and ARM cross build Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> * [ARM] Check minimum version requirement of clang for ARM cross build Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
2017-04-17Allow build.sh to have multiple cmakeargs options (#10962)Jonghyun Park1-1/+1
2017-04-06remove fedora 23 (#10725)Dan Moseley1-2/+2
* remove fedora 23 * Fedora rename
2017-03-22Various fixes for generating portable RID packages (#10409)Gaurav Khanna1-1/+1
2017-03-22Unify command line arg for portable RID build (#10408)Gaurav Khanna1-1/+1
2017-03-22Enable Portable Windows RID (#10365)Gaurav Khanna1-12/+11
* Enable Portable RID support for Windows and OSX.
2017-03-17fix syntax error in build.sh (#10256)Buyduck1-1/+1
2017-03-16Add IBC support to managed build (#10180)Daniel Podder1-6/+19
Add a new build switch, `ibcinstrument`, that adds `/Tuning` on the `crossgen` command line when building System.Private.CoreLib and its peers. Automatically consume IBC optdata during builds when these conditions are met: 1. `ibcinstrument` is *not* passed to the build, 2. optdata is available 3. ibcmerge is available Note that `optdata` will not yet be restored with this change; once packages for master are made available, a new package reference will still need to be added. This PR attempts to unblock manually testing IBC, as well as surrounding CI/infrastructure work. To help produce an IBC-optimized build using manually generated profile data, run the newly added `tests/scripts/optdata/bootstrap.py` script. It will configure the build to consume IBC data from a path automatically, and print out that path where profile data can be copied.
2017-03-16Delete mscorlib facade (#10157)Jan Kotas1-7/+0
Fixes #7607
2017-03-07Port Windows PGO support to master (#9985)Daniel Podder1-2/+32
The bulk of this PR is a cherry-pick of commit fa02660 that shipped in release/1.1.0, updating the build system support for PGO to support consuming PGDs properly during release builds on Windows. Also included are the following new changes: * Skip restore of opdata if the requisite project.json is missing * If the optdata package restore fails, fail the build. * Add new build option: 'skiprestoreoptdata' Note: This change doesn't by itself enable PGO in master yet, because training data (optdata packages) for master don't exist on myget yet. However, with these changes, the only step remaining to enable PGO optimizations is to add a project.json referencing the correct optdata package.
2017-03-06Add stripSymbols argument; refactor symbol package build (#9664)Davis Goodin1-4/+9
* Add argument to explicitly enable symbol stripping * Refactor symbol package build * Remove unnecessary native file distinctions * Remove unnecessary WindowsSymbolFile step
2017-02-16Remove all references to OpenSuse13.2wtgodbe1-3/+0
2017-02-13Merge branch 'master' of https://github.com/dotnet/coreclr into ↵Christopher Costa1-1/+2
refactor_packaging
2017-02-13Respond to PR feedbackChristopher Costa1-40/+37
2017-02-10[Arm64/Unix] Remove aarch64 unsupported message (#9508)Steve MacLean1-1/+0
2017-02-10[Linux/ARM] Fix cross-architecture component build error: disable unused ↵Hyeongseok Oh1-0/+2
code (#8866) * [ARM32/Linux] Fix cross-architecture component build error: unused function comparing CONTEXT with T_CONTEXT. - change build script: remove duplicate test build in cross-component build