forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matthias Aßhauer <mha1993@live.de>
- Loading branch information
Showing
27 changed files
with
504 additions
and
1,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
mingw-w64-clang/0001-mingw-w64-use-MSVC-style-ByteAlignment.patch
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
mingw-w64-clang/0002-Revert-CMake-try-creating-symlink-first-on-windows.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- a/cmake/modules/LLVMInstallSymlink.cmake | ||
+++ b/cmake/modules/LLVMInstallSymlink.cmake | ||
@@ -6,6 +6,12 @@ | ||
|
||
function(install_symlink name target outdir) | ||
set(DESTDIR $ENV{DESTDIR}) | ||
+ if(CMAKE_HOST_UNIX) | ||
+ set(LINK_OR_COPY create_symlink) | ||
+ else() | ||
+ set(LINK_OR_COPY copy) | ||
+ endif() | ||
+ | ||
if(NOT IS_ABSOLUTE "${outdir}") | ||
set(outdir "${CMAKE_INSTALL_PREFIX}/${outdir}") | ||
endif() | ||
@@ -14,12 +20,7 @@ | ||
message(STATUS "Creating ${name}") | ||
|
||
execute_process( | ||
- COMMAND "${CMAKE_COMMAND}" -E create_symlink "${target}" "${name}" | ||
- WORKING_DIRECTORY "${outdir}" ERROR_VARIABLE has_err) | ||
- if(CMAKE_HOST_WIN32 AND has_err) | ||
- execute_process( | ||
- COMMAND "${CMAKE_COMMAND}" -E copy "${target}" "${name}" | ||
- WORKING_DIRECTORY "${outdir}") | ||
- endif() | ||
+ COMMAND "${CMAKE_COMMAND}" -E ${LINK_OR_COPY} "${target}" "${name}" | ||
+ WORKING_DIRECTORY "${outdir}") | ||
|
||
endfunction() |
27 changes: 0 additions & 27 deletions
27
mingw-w64-clang/0003-Globally-provide-DESTDIR-for-all-platforms.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/include/llvm/TargetParser/Triple.h | ||
+++ b/include/llvm/TargetParser/Triple.h | ||
@@ -952,7 +952,7 @@ | ||
|
||
/// Tests whether the target uses emulated TLS as default. | ||
bool hasDefaultEmulatedTLS() const { | ||
- return isAndroid() || isOSOpenBSD() || isWindowsCygwinEnvironment(); | ||
+ return isAndroid() || isOSOpenBSD() || isOSCygMing(); | ||
} | ||
|
||
/// Tests whether the target uses -data-sections as default. |
38 changes: 0 additions & 38 deletions
38
mingw-w64-clang/0004-llvm-config-look-for-unversioned-shared-lib-on-win32.patch
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
mingw-w64-clang/0005-Fix-Any-linker-error-with-multiple-compilers.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/include/llvm/ADT/Any.h | ||
+++ b/include/llvm/ADT/Any.h | ||
@@ -124,7 +124,7 @@ | ||
std::unique_ptr<StorageBase> Storage; | ||
}; | ||
|
||
-template <typename T> char Any::TypeId<T>::Id = 0; | ||
+template <typename T> char Any::TypeId<T>::Id = 1; | ||
|
||
template <typename T> | ||
LLVM_DEPRECATED("Use any_cast(Any*) != nullptr instead", "any_cast") |
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
mingw-w64-clang/0101-Allow-build-static-clang-library-for-mingw.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
mingw-w64-clang/0102-Rename-flang-new-flang-experimental-exec-to-flang.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
Index: clang/include/clang/Driver/Options.td | ||
=================================================================== | ||
--- clang/include/clang/Driver/Options.td | ||
+++ clang/include/clang/Driver/Options.td | ||
@@ -5076,9 +5076,6 @@ | ||
// FLangOption + NoXarchOption | ||
//===----------------------------------------------------------------------===// | ||
|
||
-def flang_experimental_exec : Flag<["-"], "flang-experimental-exec">, | ||
- Flags<[FlangOption, FlangOnlyOption, NoXarchOption, HelpHidden]>, | ||
- HelpText<"Enable support for generating executables (experimental)">; | ||
|
||
def flang_experimental_hlfir : Flag<["-"], "flang-experimental-hlfir">, | ||
Flags<[FlangOption, FC1Option, FlangOnlyOption, NoXarchOption, HelpHidden]>, | ||
Index: clang/lib/Driver/Driver.cpp | ||
=================================================================== | ||
--- clang/lib/Driver/Driver.cpp | ||
+++ clang/lib/Driver/Driver.cpp | ||
@@ -1936,7 +1936,7 @@ | ||
|
||
void Driver::PrintVersion(const Compilation &C, raw_ostream &OS) const { | ||
if (IsFlangMode()) { | ||
- OS << getClangToolFullVersion("flang-new") << '\n'; | ||
+ OS << getClangToolFullVersion("flang") << '\n'; | ||
} else { | ||
// FIXME: The following handlers should use a callback mechanism, we don't | ||
// know what the client would like to do. | ||
Index: clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
=================================================================== | ||
--- clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
+++ clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
@@ -886,12 +886,6 @@ | ||
void tools::addFortranRuntimeLibraryPath(const ToolChain &TC, | ||
const llvm::opt::ArgList &Args, | ||
ArgStringList &CmdArgs) { | ||
- // NOTE: Generating executables by Flang is considered an "experimental" | ||
- // feature and hence this is guarded with a command line option. | ||
- // TODO: Make this work unconditionally once Flang is mature enough. | ||
- if (!Args.hasArg(options::OPT_flang_experimental_exec)) | ||
- return; | ||
- | ||
// Default to the <driver-path>/../lib directory. This works fine on the | ||
// platforms that we have tested so far. We will probably have to re-fine | ||
// this in the future. In particular, on some platforms, we may need to use | ||
Index: clang/lib/Driver/ToolChains/Flang.cpp | ||
=================================================================== | ||
--- clang/lib/Driver/ToolChains/Flang.cpp | ||
+++ clang/lib/Driver/ToolChains/Flang.cpp | ||
@@ -409,14 +409,12 @@ | ||
|
||
CmdArgs.push_back(Input.getFilename()); | ||
|
||
- // TODO: Replace flang-new with flang once the new driver replaces the | ||
- // throwaway driver | ||
- const char *Exec = Args.MakeArgString(D.GetProgramPath("flang-new", TC)); | ||
+ const char *Exec = Args.MakeArgString(D.GetProgramPath("flang", TC)); | ||
C.addCommand(std::make_unique<Command>(JA, *this, | ||
ResponseFileSupport::AtFileUTF8(), | ||
Exec, CmdArgs, Inputs, Output)); | ||
} | ||
|
||
-Flang::Flang(const ToolChain &TC) : Tool("flang-new", "flang frontend", TC) {} | ||
+Flang::Flang(const ToolChain &TC) : Tool("flang", "flang frontend", TC) {} | ||
|
||
Flang::~Flang() {} |
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
mingw-w64-clang/0103-Set-the-x86-arch-name-to-i686-for-mingw-w64.patch
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.