diff options
author | Johan Lorensson <lateralusx.github@gmail.com> | 2019-10-03 12:21:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 12:21:36 +0300 |
commit | 55be8289ff1601824707bb2ef9d554b01123f713 (patch) | |
tree | c77a71b741038359fda535d60b16931ca09fd891 /tools/sgen/Makefile.am | |
parent | d8040ba86520ae584f36628bd7eece1558970f41 (diff) |
Optional only build MSVC runtime using make file system on Windows. (#16915)
* Build MSVC only runtime using make file system.
Add a new option to only build MSVC version of mono runtime and native
tools, --enable-msvc-only. In the past, --enable-msvc build both
mingw as well as MSVC runtime, this commit adds an option to only build
MSVC version of runtime and native tools using make file system.
Commit updates all native make file making sure mingw/gcc builds are
not done if --enable-msvc-only has been used. It also makes sure we
build and use MSVC based tools as part of build and tests.
Result will be a build without any mingw/gcc artifacts, but where all
existing make files still works with the MSVC build artifacts.
This commits is also preparing to switch the .NETCore build over to use
MSVC build runtime in order to get LLVM support, something that is
currently only supported on Windows MSVC build.
* Add link to mono-sgen.exe and clean windows binaries.
* Fix failures in mono/tests test-aot on Windows.
* Add fullaot-mixed tests on Windows x64.
* Run msbuild in parallel.
* Default to x64 mingw host on cygwin build.
Diffstat (limited to 'tools/sgen/Makefile.am')
-rw-r--r-- | tools/sgen/Makefile.am | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/sgen/Makefile.am b/tools/sgen/Makefile.am index bcc2105051a..594ba33478d 100644 --- a/tools/sgen/Makefile.am +++ b/tools/sgen/Makefile.am @@ -1,3 +1,5 @@ +if !ENABLE_MSVC_ONLY + bin_PROGRAMS = sgen-grep-binprot AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) @@ -9,10 +11,14 @@ noinst_LIBRARIES = libsgen-grep-binprot.a libsgen-grep-binprot32p.a libsgen-grep # Main is in a library so it can be C++. noinst_LIBRARIES += libmain.a +endif # !ENABLE_MSVC_ONLY + # Default to C so the executable is linked as C and does not use libstdc++. # Also the -xc++ flag mishandles .o and .a files. CFLAGS = $(filter-out @CXX_REMOVE_CFLAGS@, @CFLAGS@) +if !ENABLE_MSVC_ONLY + # Libraries are C++ if enabled. libmain_a_CFLAGS = @CXX_ADD_CFLAGS@ libsgen_grep_binprot_a_CFLAGS = @CXX_ADD_CFLAGS@ @@ -39,3 +45,5 @@ sgen_grep_binprot_LDADD = \ libmain_a-sgen-grep-binprot-main.$(OBJEXT) \ libmain_a-sgen-entry-stream.$(OBJEXT) \ $(glib_libs) libsgen-grep-binprot.a libsgen-grep-binprot32p.a libsgen-grep-binprot64p.a + +endif # !ENABLE_MSVC_ONLY |