summaryrefslogtreecommitdiff
path: root/build.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-09-18[Tizen] Remove `tizen-release` package dependency for GBS buildHyungju Lee1-0/+7
`tizen-release` package holds variables that need to be defined at the unified build. Therefore, it is about to move to unified while coreclr stays at the base. So, the local os-release file is introduced.
2018-09-18[Tizen] Add support for GBSjunghyuk.park1-0/+4
2018-04-25Remove Alpine 3.6 buildsWes Haggard1-1/+4
The alpine 3.6 builds have been replaced with the more generic linux-musl builds so removing them.
2018-04-05Update docker images for arm32 (#17422)Sergey Andreenko1-5/+10
* mark places that we need to change * update dockumentation for arm * update build.sh for arm * update dockers' versions * fix build.sh * change default version for arm/armem/arm64
2018-03-31[Arm64] Add x64_arm64 crossgen to tools packageSteve MacLean1-0/+5
2018-03-26Merge pull request #17226 from weshaggard/MergeRestoreTargetsWes Haggard1-1/+1
Merge various restore tasks into one Sync target
2018-03-26Work around Jenkins problem with large env varsBruce Forstall1-0/+5
Clear out `ghprbCommentBody` before msbuild is invoked, which can't deal with large environment variables.
2018-03-26Merge various restore tasks into one Sync targetWes Haggard1-1/+1
There were various restore targets happening independently when they should all be combined so the sync step can be independent from the build step. This change merges them together under the Sync target. In particular this moves RestoreOptData and RestoreNETCorePlatforms to be part of the sync step instead of being individually ran. Pass BuildType to sync commands so optdata gets restored correctly
2018-03-23Generate native image for System.Private.CoreLib.dll during Linux/arm ↵Egor Chesakov1-22/+30
build.sh (#17157) * Add generating native image for System.Private.CoreLib.dll during Linux/arm cross build when __CrossArch/__BuildArch is x86/arm
2018-03-23Fix RestoreSources for optdata packagesWes Haggard1-1/+1
Pass unprocessed args to restore optdata step so it can override the sources when doing restore Handle prority as an unprocessed arg for the sync alias
2018-03-15Fix etmdummy.h file not found during cross crossarchitecture buildEgor Chesakov1-39/+42
2018-03-14Include Linux/cross-arch components into NuGet packages (#16859)Egor Chesakov1-1/+1
* Add __DoCrossArchBuild settings to config.json * HasCrossTargetComponents computes to 'true' on Linux when __DoCrossArchBuild is 1 in dir.props * Include cross-architecture libclrjit.so crossgen into NuGet props files when HasCrossTargetComponents is 'true' * Pass $__DoCrossArchBuild to run.sh when generating NuGet packages in build.sh
2018-03-10Fix build with Clang 6.0 and enable build with Clang 5.0 (#16855)Jan Vorlicek1-0/+10
* Fix build with Clang 6.0 * Add support for clang 5.0 too
2018-01-30Building non-Windows builds using the CLI's MSBuild (#16101)Jose Perez Rodriguez1-3/+3
* Building non-Windows builds using the CLI's MSBuild
2018-01-02Retry: Enable EventPipe across Unix and Windows (#15611)Victor "Nate" Graf1-51/+16
* Revert "Revert "Enable EventPipe across Unix and Windows (#14772)" (#15609)" This reverts commit 302005ca8ae14eade37ddf4ac6e900617c1c166a. * Fix ARM build break * Use more explicit references to resolve build failures * Fix compat with python3 * Disable FeaturePerfTracing on Windows as it is not ready * Disable test for incomplete functionality * Fix test diabled patterns * Add license header * Use keyword types for managed code * Add message prefix * More precisly condition generation of eventing sources * Remove erroneously added changes
2017-12-21Revert "Enable EventPipe across Unix and Windows (#14772)" (#15609)Victor "Nate" Graf1-16/+51
This reverts commit 7524d72d4f0f634fe5407280b83c25181dc8c556.
2017-12-20Enable EventPipe across Unix and Windows (#14772)Victor "Nate" Graf1-51/+16
* [squashed] most work complete to enable EventPipe on Windows * Eventpipe now builds on Windows * Ensure evevntpipe is intialized on Windows * Resolve the location of python from build.cmd * Ensure eventing files are generated when needed * moving linkage declaration to cmake * create new event from constructor * enable FEATURE_EVENT_TRACE and FEATURE_PERF_TRACE everywhere * [WIP] checkpoint in fixing contarct errors * add another possible python location * Fix double delete bug in EventPipeConfiguration destructor * Fix typo in function name * Revert changes to .gitgnore * bump to netstandard1.6 in preperation for new version of TraceEvent * Revert changes to groovy files * revert changes to perf-prep scripts * add common.h and use nothrow * Fix issue which was causing double delete of configprovider * Add new test utilizing TraceEvent * Remove accidentally added local directory reference * Add comment to explain the addition of misc/tracepointprovider.cpp * Add back sys.exit(0) and refactor * Change conditional to be more direct * Better handle NULL config * Initialize m_deleteDefered * Eliminate obsolete field * Fix spelling error * Fix nits * Make smaple progiler timing functions easier to read * Move projects back to netstandard1.4 * Incomplete improvements to EventPipeTrace test * Add event integrity checks to test * Clean up some left over code * Add EventSource based test * Remove unused PAL tests on Windows * Fix Linux build breaks * Minor changes to CMake files * Remove //HACK for hack that was previously removed * Fix formatting and negate a #ifdef * Add conditional to ensure PERFTRACING is not enabled without EVENT_TRACE * Take lock on EventPipeProvider and EventPipeConfiguration destruction * Load winmm.dll at runtime * Change function name and compile conditions * Move typedef into #ifndef * Use the correct config in setup * Change lifecycle managment of EventPipeConfiguration's configuration provider * Enable EventPipe tests pri0 and disable broken tests * Replace python3 only error with python2 compatable one * Make common.csproj build pri0 * Change TraceEvent version to 2.0.2 to match published verison * Address cross build failure * Remove use of undefined variable * Add crossgen fix to .cmd * Use more specific types to avoid marshalling errors * Use Assert-style statements and remove one check * Fix cross arch build * Fix flipped branch * Bring build.cmd changes to build.sh * Fix cmake writing * Revert "Bring build.cmd changes to build.sh" This reverts commit 893c6492548d8bc9859ebba5b1b810aa630fac63. * remove stdlib.h * Fix out of order null check
2017-10-30Switch to sourcing in init-tools to enable the return statements to workWes Haggard1-2/+2
2017-10-30Pass overridden packages directory to CMakeWes Haggard1-2/+2
2017-10-30Normalize the alpine and rhel RIDsWes Haggard1-1/+1
See: https://github.com/dotnet/core-setup/commit/c8a27076f93c3107759b8a86a02ea4f40d100b67 We need to strip the last part of the version number for alpine and rhel because they are compatible and we don't want the specific versions.
2017-10-27[Local GC] Implement loader protocol for a standalone GC (#14663)Sean Gillespie1-4/+0
* First cut of the load protocol * Implement for non-standalone GC * Initial working implementation * First steps towards not using GetProcAddress when not using a standalone GC * Factor out loading routines into standalone and non-standalone cases * Remove the FEATURE_STANDALONE_GC_ONLY build * Code cleanup and comments * Comments for the version numbers * Use more appropriate type for config string * add GC_LOAD_STATUS_BEFORE_START to disambiguate failures before the start of the load and failures at the beginning of the load * FEATURE_STANDALONE_GC on by default * Implement YieldProcessor and MemoryBarrier for arm and arm64 * Remove missed FEATURE_STANDALONE_GC feature check
2017-10-19Add build-test osx supportjashook1-0/+4
2017-10-06 enable lttng for FreeBSD. (#14342)Tomas Weinfurt1-2/+2
* enable lttng for FreeBSD. it is supported for user space * unify Linux and FreeBSD branches for lttng. At lest for now, they are identical
2017-10-04Few build changes to support Freebsd (#14121)Tomas Weinfurt1-1/+21
* also look for python27 * add more locations to search for lldb.h so it just work on FreeBSD * add adm64 to ARCH selection. This is mostly cosmetic to avoild warning on FreeBSD * add support for -osgroup=XXX - this is mostly for conistency. -OSGroup=FreeBSD is similar to freebsdmscorlib in build.cmd * fix typo adm->amd * add back fi removed by mistake * add __HostDistroRid for FreeBSD * adress fedback from review: make python lookup consistent - starting with most specific version. uddate warning message about lldb.h and remove composite flag * feedback from review: type and small change on OSGroup syntax * few more minor fixes
2017-09-29Update build clang/llvm/lldb 3.9 (#14096)Mike McLaughlin1-13/+2
Update build scripts, docs and build pipeline docker images to clang/llvm/lldb 3.9
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