-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from h-vetinari/bump
Bump to 986 / 711
- Loading branch information
Showing
6 changed files
with
44 additions
and
90 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
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
37 changes: 17 additions & 20 deletions
37
recipe/patches/0004-Turn-off-outputIsMappableFile-when-building-to-osx-a.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 |
---|---|---|
@@ -1,34 +1,31 @@ | ||
From 5d6c783218d987da96ac96ede628970122eab0b1 Mon Sep 17 00:00:00 2001 | ||
From 4bc8b0d61a4787ef302ddfc0ab6bc46b7804869d Mon Sep 17 00:00:00 2001 | ||
From: Eli Rykoff <erykoff@stanford.edu> | ||
Date: Thu, 24 Feb 2022 21:16:24 -0800 | ||
Subject: [PATCH 4/5] Turn off outputIsMappableFile when building to osx-arm64 | ||
Subject: [PATCH 4/4] Turn off outputIsMappableFile when building to osx-arm64 | ||
|
||
--- | ||
cctools/ld64/src/ld/OutputFile.cpp | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/cctools/ld64/src/ld/OutputFile.cpp b/cctools/ld64/src/ld/OutputFile.cpp | ||
index c6b4270..6cd1591 100644 | ||
index 36772bb..d79cd8a 100644 | ||
--- a/cctools/ld64/src/ld/OutputFile.cpp | ||
+++ b/cctools/ld64/src/ld/OutputFile.cpp | ||
@@ -3805,7 +3805,7 @@ void OutputFile::writeOutputFile(ld::Internal& state) | ||
// <rdar://problem/12264302> Don't use mmap on non-hfs volumes | ||
@@ -3844,7 +3844,7 @@ void OutputFile::writeOutputFile(ld::Internal& state) | ||
#ifdef __APPLE__ // ld64-port | ||
// <rdar://problem/12264302> Don't use mmap on non-hfs volumes | ||
struct statfs fsInfo; | ||
- if ( statfs(_options.outputFilePath(), &fsInfo) != -1 ) { | ||
+ if ( (_options.architecture() != CPU_TYPE_ARM64) && (statfs(_options.outputFilePath(), &fsInfo) != -1) ) { | ||
if ( (strcmp(fsInfo.f_fstypename, "hfs") == 0) || (strcmp(fsInfo.f_fstypename, "apfs") == 0) ) { | ||
(void)unlink(_options.outputFilePath()); | ||
outputIsMappableFile = true; | ||
@@ -3835,7 +3835,7 @@ void OutputFile::writeOutputFile(ld::Internal& state) | ||
end[1] = '\0'; | ||
+ if ( (_options.architecture() != CPU_TYPE_ARM64) && (statfs(_options.outputFilePath(), &fsInfo) != -1) ) { | ||
// <rdar://problem/72136053> | ||
(void)unlink(_options.outputFilePath()); | ||
|
||
@@ -3878,7 +3878,7 @@ void OutputFile::writeOutputFile(ld::Internal& state) | ||
strcpy(dirPath, "./"); // if no slashes path, then writing to cwd | ||
#ifdef __APPLE__ // ld64-port | ||
struct statfs fsInfo; | ||
- if ( statfs(dirPath, &fsInfo) != -1 ) { | ||
+ if ( (_options.architecture() != CPU_TYPE_ARM64) && (statfs(dirPath, &fsInfo) != -1) ) { | ||
if ( (strcmp(fsInfo.f_fstypename, "hfs") == 0) || (strcmp(fsInfo.f_fstypename, "apfs") == 0) ) { | ||
outputIsMappableFile = true; | ||
} | ||
-- | ||
2.38.1.windows.1 | ||
|
||
struct statfs fsInfo; | ||
- if ( statfs(dirPath, &fsInfo) != -1 ) { | ||
+ if ( (_options.architecture() != CPU_TYPE_ARM64) && (statfs(dirPath, &fsInfo) != -1) ) { | ||
if ( (strcmp(fsInfo.f_fstypename, "hfs") == 0) || (strcmp(fsInfo.f_fstypename, "apfs") == 0) ) { | ||
outputIsMappableFile = true; | ||
} |
32 changes: 0 additions & 32 deletions
32
recipe/patches/0005-don-t-try-to-include-__assert-for-NDEBUG-builds.patch
This file was deleted.
Oops, something went wrong.