-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not pass --gc-sections for debug builds.
The user may want to call "unused" functions during debugging. This fix does not cover the new cmake toolchain. afaict CMake does not give us the control needed to fix this bug without entirely reverting the feature in that mode (we can control linker flags, but not per mode). Bug: android/ndk#1813 Test: expanded the gc-sections test Change-Id: I095e2e70f522f4dbd5021f0efab49dfd86cfba51
- Loading branch information
Showing
7 changed files
with
93 additions
and
9 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from ndk.test.buildtest.case import Test | ||
from ndk.test.spec import CMakeToolchainFile | ||
|
||
|
||
def build_broken(test: Test) -> tuple[str | None, str | None]: | ||
if test.config.toolchain_file is CMakeToolchainFile.Default: | ||
return "new CMake toolchain", "https://github.com/android/ndk/issues/1813" | ||
return None, None |