summaryrefslogtreecommitdiff
path: root/build.cmd
AgeCommit message (Collapse)AuthorFilesLines
2015-09-02Merge pull request #1450 from ww898/build_with_spacesMatt Mitchell1-1/+1
Update build.cmd to support spaces in coreclr checkout directory
2015-09-01Fix release build of mscorlib from build.shMatt Ellis1-1/+1
The mscorlib build in build.sh was not correctly flowing __BuildType into MSBuild, which caused us to always build a Debug mscorlib. While I was in the area, I removed the defines for OSGroup (which are unused, as we use __BuildOS instead) and cleaned up some of the property switches so we always pass prefixed properties (the bare names are the computed ones from our targets in msbuild).
2015-08-27Update build.cmd to support spaces in clerclr checkout directoryMikhail Pilin1-1/+1
2015-08-20Auto-detect VS2015Jan Kotas1-6/+13
Change build and tests scripts to detect VS2015 and use that if available by default
2015-08-10Fix path to test build logJan Kotas1-1/+1
2015-08-04Enable the Windows x86 buildMike Danes1-3/+6
This allows building the Windows x86 version of CoreCLR by using "x86" for the BuildArch parameter of build.cmd. Note that CMAKE_SYSTEM_PROCESSOR is no longer used in Windows builds to set IS_64BIT_BUILD. This change is enough to get CoreCLR to build but more changes are required for it to actually run correctly. In particular, the JIT compiler support for x86 is pretty limited at this point.
2015-07-24Add ARM target for CoreCLR on Linux.Ben Pye1-0/+1
c_runtime/vprintf/test1 is disabled as casting NULL to va_list is against the C specification. Fix SetFilePointer tests on 32 bit platforms. Define _FILE_OFFSET_BITS=64 so that we have long file support on 32 bit platforms. Implement context capture/restore for ARM. Link libgcc_s before libunwind on ARM so C++ exceptions work. Translate armasm to gas syntax. Specify Thumb, VFPv3, ARMv7 for the ARM target. Add ARM configuration to mscorlib build Implement GetLogicalProcessorCacheSizeFromOS in PAL. Set UNWIND_CONTEXT_IS_UCONTEXT_T from configure check.
2015-07-20Add option to skip test build in build.cmdMatt Mitchell1-1/+10
Add help information regarding skiptestbuild option
2015-07-09Move CoreCLR to the modern build tools and dnxMatt Mitchell1-3/+2
This changes moves coreclr onto DNX (same version as corefx). Theoretically, this should allow these tests to target the desktop CLR. All of the old package.config files are gone and replaced with corresponding project.json files. The up front restore behavior is retained. Tests are now buildable individually, though not runnable in a similar fashion.
2015-07-07Improve the build throughputMatt Mitchell1-2/+2
Especially with the builds of the tests, the diag logging significantly reduces TP in the build and seems to reduce parallelism a bit too. Change this to normal.
2015-07-05Document Visual Studio 2015 supportDick van den Brink1-3/+3
2015-07-01Fix broken Developer Guide documentation linksMarcel Gosselin1-4/+4
2015-06-09Merge pull request #1117 from hadibrais/masterJan Vorlicek1-1/+1
Build, Windows: Use Config instead of Build Type
2015-06-08Build, Windows: Use Config instead of Build TypeHadi Brais1-1/+1
CMAKE_BUILD_TYPE should not be used with multi-configuration toolsets like Visual Studio. This commit removes the dependence of the Windows build on CMAKE_BUILD_TYPE. See (https://github.com/dotnet/coreclr/pull/1111#commitcomment-11562822).
2015-06-07build,freebsd: Adds freebsdmscorlib to build.cmd.Peter Jas1-1/+2
2015-06-07Merge pull request #1111 from hadibrais/masterJan Kotas1-1/+1
Enable Whole Program Optimization (WPO) for the Release build on Windows
2015-06-07build,win: Enables Whole Program Optimization.Hadi Brais1-1/+1
* Enables whole program optimization for release configuration on Windows. * Fixes all messages "/LTCG specified but no code generation required; remove /LTCG from link command line to improve linker performance" which slow down the build process. * Fixes all messages "MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance" which slow down the build process. * The previous two fixes work in Release and Debug builds on Windows. Issue-URL: #1086
2015-06-07Add windowsmscorlib option to build.cmdstephentoub1-0/+2
2015-06-01Re-work wiki as Repo docsRichard Lander1-4/+4
2015-05-20Fix exit codes in build/test scriptsMatt Mitchell1-10/+10
The use of goto :eof in numerous places in the build and test scripts is problematic. If preceded by an echo or other command, it will overwrite the exit code and the script may return incorrectly. This was happening for buildtest, masking a recent ycompilation error in one of the tests. Change all of the goto :eof's to exit /b.
2015-05-07Fix for build script on Win7 - label too longBrad Robinson1-2/+2
2015-05-01Only clean previous output for the selected configuration.Tanner Gooding1-2/+9
This modifies the `build.cmd`, `build.sh`, and `buildtest.cmd` to only remove previous output (binaries, intermediates, and logs) for the selected configuration when the `clean` argument is specified. This also modifies `runtest.cmd` to output log files in the same format as `build.cmd`, `build.sh`, and `buildtest.cmd` do currently.
2015-04-27Enable building linuxmscorlib / osxmscorlib with VS2015Stephen Toub1-1/+5
Trying to do "build linuxmscorlib vs2015" was resulting in an error due to the script trying to read %_msbuildexe% when _msbuildexe hadn't been defined. When that was addressed, mscorlib was then also failing to compile due to the csc compiler not understanding a flag that was being set in the response file based on UseRoslynCompiler not being set. This commit addresses both issues.
2015-04-26Allow building with VS2015 installedDick van den Brink1-8/+18
Previous it was required to have VS2013 but now VS2015 can also be used. The default is still 2013 though. On a machine with both version installed it is possible to force VS2013/VS2015 with a parameter. Note: Still some work has to be done to make compilation successfull on VS2015.
2015-04-20Enable build crossgen.exe from build.cmd.John Chen1-1/+13
Adds and modifies CMakeLists.txt files to enable building of crossgen.exe from build.cmd for x64 processor on Windows. Also adds a step in build.cmd to generate native image for mscorlib. [tfs-changeset: 1456454]
2015-04-01Merge branch 'master' into usage-exit-codeMatt Mitchell1-12/+15
Conflicts: build.cmd
2015-04-01Displaying usage message should cause build/test scripts to exit with ↵Matt Mitchell1-1/+1
non-zero code
2015-03-31Change paths and os names to match corefxMatt Mitchell1-11/+14
* binaries is now bin, intermediates is now obj * modifying unixmscorlib build to instead be linuxmscorlib + osxmscorlib. * Change OS=Unix to OS=Linux/OS=OSX and modified properties to mimic corefx's TargetsUnix.
2015-03-19Build unixmscorlib without CMakeJared Parsons1-0/+3
The Linux build instructions don't list CMake as a pre-requisite for building mscorlib yet build.cmd errors out if it is not present on the machine. CMake isn't actually necessary for this particular build so instead of requiring users to install CMake when not needed I added code to skip the CMake detection logic in this case.
2015-03-18Remove check for VS Developer Command PromptJan Kotas1-5/+3
2015-03-16Fixes for building tests aloneMatt Mitchell1-8/+2
This change fixes an issue where tests cannot be built alone as well as cleans up the paths. The general path cleanup was done so that the path format and variable names generally follow the main build of the coreclr repo. Some highlights are: * Don't use Cmake as a directory name for intermediates, use intermediates instead. * Disable 4820 warning (this is about padding) when building tests. Reduces noise in output significantly * Some fixes in typos and casing in the project files and build scripts
2015-03-15rephrase into VS Developer Command PromptJeroen Janssen1-1/+1
2015-03-14Add check and instruction to build.cmd to run from normal promptJeroen Janssen1-0/+5
2015-02-23Place binaries and intermediates in folders that include OSMatt Mitchell1-26/+22
Rework the output paths so that the OS may appear in them. This then follows the same form as corefx. This solves a number of problems: 1) When building unix mscorlib after the regular build, we would use the wrong intermediates for incremental. 2) When testing windows after building unix mscorlib we'd use the wrong outputs and fail. This change removes our cmake directory and moves cmake generated files into intermediates (under OS/arch paths) The reason is that the intermediates go under here when actually doing the build, and on unix based systems, we need to generate the cmake files for different builds into different directories for the purpose of preserving incremental builds. Change clean behavior Clean should simply delete the root binary. We also should not make assumptions about whether necessary directories are available when we begin to build and should create them every time if necessary. Create directories as needed.
2015-02-21Clarify Visual Studio pre-reqRichard Lander1-3/+9
2015-02-19Setup the CoreCLR repo to use the LocalPackagePublish mechanism.Alex Ghiondea1-1/+1
This will enable the 'local publish' of the CoreCLR package to a location where it can be picked up by the CoreFx build. What this means is that you will be able to build the CoreCLR package and use that to run the CoreFx tests on top of it. Changes required to make this happen: - Refactor the managed build to make sure the buildtools gets restored before we attempt to use the targets it provides. - Take a dependency to the Microsoft.DotNet.BuildTools to bring in the packages.targets - Update the $(PackagesDir) to point to the <repo root>\packages to make it consistent with CoreFx - Hook-up the LocalPackagePublish targets to the build of the CoreCLR NuGet packages
2015-02-12Make build.cmd lookup the install directory of cmake in the registry if it's ↵Kasper F. Brandt1-7/+5
not on the path.
2015-02-11Correct handling of paths with spaces and ampersands when building on windows.Kasper F. Brandt1-34/+36
Fixes #178
2015-02-05Fix build.cmd return codesMatt Mitchell1-4/+9
Build script was accidentally wiping the return code of the first msbuild step, causing us to continue building even in failure. Fix this and do a little extra cleanup.
2015-02-03Update the CMake requirement message in build.cmd.Wes Haggard1-1/+1
2015-02-02Builds should work from non-root directoriesMatt Mitchell1-1/+1
2015-01-30Initial commit to populate CoreCLR repo dotnet-bot1-0/+190
[tfs-changeset: 1407945]