Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lateralusX
Copy link
Member

@lateralusX lateralusX commented Oct 24, 2018

Add support to perform msvc mono runtime build as part of regular make build. By default, msvc build will not automatically but can be enabled using --enable-msvc argument passed to autogen.sh. Doing msvc build as part of regular make will automatically set MONO_EXECUTABLE to build msvc build Mono runtime used in BCL and Test build as well as runtime used when running tests. Build msvc binaries will also be part of make install, if enabled.

Running build using --enable-msvc removes the need to do separate msvc build (normally before running make) and setup MONO_EXECUTABLE to matching build binary later picked up by BCL/Test builds and test execution. Using --enable-msvc automatically makes sure a matching msvc runtime gets build and used based on used --host parameter. Doing a full Windows build, including msvc build can now be done like this:

./autogen.sh --prefix=$PREFIX --host=x86_64-w64-mingw32 --enable-msvc --disable-boehm
make -j4

@lateralusX
Copy link
Member Author

@monojenkins build failed

Add support to perform msvc build as part of regular make build. By default
msvc build will not automatically be done and needs to be enabled using
--with-msvc argument passed to ./autogen.sh. Doing msvc build as part of
regular make will automatically set MONO_EXECUTABLE to build msvc build
Mono runtime used in BCL and Test build as well as runtime used when running
tests.
@lateralusX lateralusX force-pushed the lateralusX/update-windows-build branch from 335dcf9 to 0a3056f Compare October 25, 2018 08:24
@lateralusX lateralusX changed the title WIP: Add option to integrate msvc build into regular make build. Add option to integrate msvc build into regular make build. Oct 25, 2018
Copy link
Contributor

@luhenry luhenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! Only the --enable-msvc and it will all look perfect to me :)

configure.ac Outdated
AC_SUBST(mono_build_root)

mono_runtime=mono/mini/mono
AC_ARG_WITH(msvc, [ --with-msvc=yes,no Build with Visual Studio (msvc) (defaults to no)],[],[with_msvc=no])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use AC_ARG_ENABLE so you have --enable-msvc. We overuse the --with-* which is not originally meant for a yes/no parameter. Then propagate that ENABLE_MSVC variable instead of WITH_MSVC.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, will change. Original used --enable-msvc at a start but then I looked for other patterns that seemed to be using --with-*.

@lateralusX
Copy link
Member Author

@monojenkins build failed

@luhenry luhenry merged commit 1ec7ac5 into mono:master Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants