New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chromium: build with upstream llvm & PGO #101786
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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
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
53 changes: 53 additions & 0 deletions
53
pkgs/development/compilers/llvm/11/fix-out-of-tree-build.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,53 @@ | ||
From 5e4409f30817798377689ef6c229f1c82815e6e8 Mon Sep 17 00:00:00 2001 | ||
From: Dave Airlie <airlied@redhat.com> | ||
Date: Tue, 6 Oct 2020 18:13:44 -0400 | ||
Subject: [PATCH] Fix out-of-tree clang build due to sysexits change | ||
|
||
The sysexists change broke clang building out of tree against llvm. | ||
|
||
https://reviews.llvm.org/D88467 | ||
--- | ||
llvm/include/llvm/Config/config.h.cmake | 3 --- | ||
llvm/include/llvm/Config/llvm-config.h.cmake | 3 +++ | ||
llvm/include/llvm/Support/ExitCodes.h | 2 +- | ||
3 files changed, 4 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake | ||
index 9ad0d827dfd8..fc3f94570e98 100644 | ||
--- a/llvm/include/llvm/Config/config.h.cmake | ||
+++ b/llvm/include/llvm/Config/config.h.cmake | ||
@@ -208,9 +208,6 @@ | ||
/* Define to 1 if you have the <sys/types.h> header file. */ | ||
#cmakedefine HAVE_SYS_TYPES_H ${HAVE_SYS_TYPES_H} | ||
|
||
-/* Define to 1 if you have the <sysexits.h> header file. */ | ||
-#cmakedefine HAVE_SYSEXITS_H ${HAVE_SYSEXITS_H} | ||
- | ||
/* Define if the setupterm() function is supported this platform. */ | ||
#cmakedefine LLVM_ENABLE_TERMINFO ${LLVM_ENABLE_TERMINFO} | ||
|
||
diff --git a/llvm/include/llvm/Config/llvm-config.h.cmake b/llvm/include/llvm/Config/llvm-config.h.cmake | ||
index ee299876825e..452c56e408de 100644 | ||
--- a/llvm/include/llvm/Config/llvm-config.h.cmake | ||
+++ b/llvm/include/llvm/Config/llvm-config.h.cmake | ||
@@ -88,4 +88,7 @@ | ||
/* Define if LLVM was built with a dependency to the tensorflow compiler */ | ||
#cmakedefine LLVM_HAVE_TF_AOT | ||
|
||
+/* Define to 1 if you have the <sysexits.h> header file. */ | ||
+#cmakedefine HAVE_SYSEXITS_H ${HAVE_SYSEXITS_H} | ||
+ | ||
#endif | ||
diff --git a/llvm/include/llvm/Support/ExitCodes.h b/llvm/include/llvm/Support/ExitCodes.h | ||
index 2715c5ca4128..b9041f5557d5 100644 | ||
--- a/llvm/include/llvm/Support/ExitCodes.h | ||
+++ b/llvm/include/llvm/Support/ExitCodes.h | ||
@@ -16,7 +16,7 @@ | ||
#ifndef LLVM_SUPPORT_EXITCODES_H | ||
#define LLVM_SUPPORT_EXITCODES_H | ||
|
||
-#include "llvm/Config/config.h" | ||
+#include "llvm/Config/llvm-config.h" | ||
|
||
#if HAVE_SYSEXITS_H | ||
#include <sysexits.h> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I probably should have set
stdenv = llvmPackages.lldClang.stdenv
in #101467. Maybe it would be good to include?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind,
llvmPackages.lldClang.stdenv
is totally broken.