Commit Graph
437 Commits
Author SHA1 Message Date
Martin Storsjö a484ddba04 Stop using --enable-secure-api with mingw-w64 headers
This is on by default now, and the option is ignored (and produces
a warning).
2019-04-18 14:16:32 +03:00
Steve Lhomme cd73ed8308 wrappers: link with the Windows Store specific runtime for UWP 2019-04-18 12:35:25 +03:00
Steve Lhomme a270bc3cad wrappers: force linking with mincore for UWP targets
it's not needed for regular win32 so shouldn't be either for these targets
2019-04-18 12:23:38 +03:00
Steve Lhomme 707fda6348 tests: add a test to make sure compiling forbidden UWP APIs fails
When building for UWP and works otherwise
2019-04-18 12:23:28 +03:00
Steve Lhomme 591a5c2ddc tests: also test UWP targets
the tests with LoadLibrary will not work on these, so skip them
2019-04-18 11:30:59 +03:00
Steve Lhomme ca44a11660 Add wrappers that target Universal Windows 2019-04-18 11:28:05 +03:00
Martin Storsjö 47acbb667e run-tests: Handle uname MSYS* in the same way as MINGW* 2019-04-18 10:16:41 +03:00
Martin Storsjö 8c5bac6cb7 run-tests: Actually run the asan test binary when running on native windows 2019-04-18 10:15:26 +03:00
Martin Storsjö 2e31d11bfd run-tests: Make sure to actually run tests when run on native windows 2019-04-18 10:09:00 +03:00
Martin Storsjö 86e0b3732f crt-test: Remove skips for acosh(infinity) on x86 mingw
This is fixed in the latest upstream version.
2019-04-16 14:53:54 +03:00
Martin Storsjö 978a430069 Update mingw-w64 to a yet newer version
This improves math functions in libmsvcrt-os.a for arm/arm64, and
improves the acosh function for x86.
2019-04-16 14:53:54 +03:00
Martin Storsjö cb7feea731 crt-test: Tweak TEST_FLT_ACCURACY to not accept NAN 2019-04-16 10:28:43 +03:00
Martin Storsjö 70c64e58c9 crt-test: Add tests for acosh/asinh/atanh 2019-04-16 10:28:43 +03:00
Martin Storsjö 141027d5d4 crt-test: Add tests for expm1 and log1p 2019-04-16 10:28:33 +03:00
Martin Storsjö 84bdd9c4e8 Set the correct CMake option CMAKE_CROSSCOMPILING in build-llvm.sh
The previous option doesn't seem to have had any effect, and cmake
correctly has warned about an unused option.

Also set the value of the option to TRUE, for slightly more consistency
with where this option is set in build-llvm.sh.
2019-04-16 10:27:25 +03:00
Martin Storsjö 34cf84fa68 crt-test: Test putenv and the environ variable 2019-04-15 14:05:46 +03:00
Martin Storsjö fd39855471 crt-test: Remove a skip for fmodl on arm 2019-04-15 14:05:46 +03:00
Martin Storsjö a59b98bb0c crt-test: Test error reporting of CRT functions via errno 2019-04-15 14:05:46 +03:00
Martin Storsjö 62869c798c crt-test: Remove a skip for a floor function issue
When using the floor function from msvcrt/ucrt instead of a libmingwex
reimplementation, this test passes on arm as well.
2019-04-15 14:05:46 +03:00
Martin Storsjö 5f846336c0 Bump to a newer version of mingw-w64
This version contains a number of improvements for the arm CRT
libraries.
2019-04-15 14:05:22 +03:00
Martin Storsjö a96783ee46 crt-test: Improve the tests for fmod/remainder/remquo 2019-04-09 14:20:23 +03:00
Martin Storsjö 776b1f4a84 crt-test: Add tests for modf 2019-04-09 13:17:06 +03:00
Martin Storsjö 3ccaf1c1bf crt-test: Add tests of fmod/remainder/remquo 2019-04-09 12:47:00 +03:00
Martin Storsjö cb71dfa03b crt-test: Test sincos() 2019-04-09 12:45:35 +03:00
Martin Storsjö 5d969f2a70 crt-test: Add tests of ldexp/scalbn/scalbln 2019-04-09 12:32:56 +03:00
Martin Storsjö dde687f36d crt-test: Add tests of exp2 2019-04-09 12:32:56 +03:00
Martin Storsjö f2f68dff90 crt-test: Add testcases of log2l 2019-04-09 12:32:56 +03:00
Martin Storsjö db663db2b8 Fix building libunwind/libcxxabi with an unstripped llvm after SVN r357899 2019-04-09 11:33:46 +03:00
Martin Storsjö 053c581e1f Allow overriding which CRT to use by default 2019-04-06 23:01:27 +03:00
Martin Storsjö 7c2067f19f Build and keep llvm-cov and llvm-profdata
These might be useful now that the profiling library in compiler-rt
works.
2019-03-29 23:09:41 +02:00
Martin Storsjö 13d73ee670 Update compiler-rt to a new version
This version fixes undefined symbols in the profiling library.
2019-03-29 23:07:57 +02:00
Martin Storsjö 666a26307d Revert "Mention the fact that binutils can't use the generated import libraries"
This reverts commit 9367988be7.

binutils actually can handle the short import format just fine.
It only has got issues with base mingw import libraries that contain
symbol aliases (which in llvm-dlltool is implemented via weak
symbols, and linking to weak symbols differ a bit between lld and
binutils ld).
2019-03-24 22:16:08 +02:00
Martin Storsjö 4e58a5a9a0 Update llvm/clang/lld to a recent version
Since the previous pinned version, there was one fix relevant for
windows on aarch64.
2019-03-19 09:44:01 +02:00
Martin Storsjö b3ff7b278d Update libcxx to the 8.0 release version
libunwind and libcxxabi are kept at the previously pinned versions, past
the 8.0 branch.
2019-03-19 09:40:46 +02:00
Martin Storsjö f39d45162e Update compiler-rt to the 8.0 release version
This doesn't fix any particular known issue, but the release branch
should generally be a safe version.
2019-03-19 09:34:19 +02:00
Martin Storsjö b9e0685167 Update mingw-w64 to the latest version from today 2019-03-19 00:30:54 +02:00
Martin Storsjö 4a7cb27899 Don't error out if git-svn is unavailable
This should avoid leaving the llvm tree checked out at a version other
than the pinned one, if git-svn failed or wasn't available.
2019-03-16 10:53:00 +02:00
Martin Storsjö 005b8efd91 Allow building a full llvm install 2019-03-15 23:56:18 +02:00
Martin Storsjö 25c3bd8593 Set LLVM_COMPILER_CHECKED when bootstrapping libunwind/libcxxabi/libcxx
The checks behind LLVM_COMPILER_CHECKED fail if there's no libc++
available for linking.

This fixes building libunwind/libcxxabi/libcxx with newer versions
of llvm, if the llvm installation isn't stripped.
2019-03-15 23:53:20 +02:00
Steve Lhomme 975ed24984 tests: set the output folder in one variable
And use it everywhere
2019-03-12 10:42:43 +02:00
Steve Lhomme d3b256c7be test: ignore more generated files 2019-03-12 10:42:43 +02:00
Steve Lhomme 3de09f9e25 tests: don't run using wine on mingw 2019-03-12 10:41:42 +02:00
Martin Storsjö 4b537369ca Add more proper references to dwarf issues on i686 2019-03-01 10:28:00 +02:00
Martin Storsjö a8064cfdb5 Install the sanitizer headers 2019-02-22 22:34:54 +02:00
Martin Storsjö 7c891a036d Don't point libunwind to the libcxx include directory
This is no longer necessary.
2019-01-30 09:19:47 +02:00
Martin Storsjö 2ccb0d5975 Update libunwind to the latest version
This version drops the dependency on standard C++ library headers.
2019-01-30 09:19:38 +02:00
Martin Storsjö 6cab2bca42 Update libunwind to the latest version
This version fixes restoring of float registers for armv7, when using
dwarf exceptions (which we use by default).
2019-01-29 11:01:10 +02:00
Martin Storsjö 68aa79a99b Create the prefixless objcopy/strip tools from an executable
This is necessary since 62b208aee2.
2019-01-24 13:46:08 +02:00
Martin Storsjö 5f56f7694b Display the output filename after packaging the cross built toolchain 2019-01-24 13:25:16 +02:00
Martin Storsjö 56506a5c6e Avoid warnings when building libcxxabi due to redefining _LIBCPP_BUILDING_LIBRARY
Some libcxxabi source files define _LIBCPP_BUILDING_LIBRARY themselves.

A "#define FOO" in a file defines it to "", while "-DFOO" on the command
line defines it to "1". Define it on the command line using "-DFOO=" to
make it match the #define within the source files.
2019-01-24 11:12:17 +02:00