chore: upgrade newlib

This commit is contained in:
Haolan
2025-09-08 15:21:55 +08:00
parent b239494a9f
commit 6aa63121ff
2 changed files with 7 additions and 7 deletions

View File

@@ -15,23 +15,23 @@ func TestGetNewlibESP32Config_LibConfig(t *testing.T) {
t.Errorf("Expected Name '%s', got '%s'", expectedName, config.Name) t.Errorf("Expected Name '%s', got '%s'", expectedName, config.Name)
} }
expectedVersion := "esp-4.3.0_20250211-patch2" expectedVersion := "esp-4.3.0_20250211-patch3"
if config.Version != expectedVersion { if config.Version != expectedVersion {
t.Errorf("Expected Version '%s', got '%s'", expectedVersion, config.Version) t.Errorf("Expected Version '%s', got '%s'", expectedVersion, config.Version)
} }
expectedUrl := "https://github.com/goplus/newlib/archive/refs/tags/esp-4.3.0_20250211-patch2.tar.gz" expectedUrl := "https://github.com/goplus/newlib/archive/refs/tags/esp-4.3.0_20250211-patch3.tar.gz"
if config.Url != expectedUrl { if config.Url != expectedUrl {
t.Errorf("Expected Url '%s', got '%s'", expectedUrl, config.Url) t.Errorf("Expected Url '%s', got '%s'", expectedUrl, config.Url)
} }
expectedArchiveSrcDir := "newlib-esp-4.3.0_20250211-patch2" expectedArchiveSrcDir := "newlib-esp-4.3.0_20250211-patch3"
if config.ArchiveSrcDir != expectedArchiveSrcDir { if config.ArchiveSrcDir != expectedArchiveSrcDir {
t.Errorf("Expected ArchiveSrcDir '%s', got '%s'", expectedArchiveSrcDir, config.ArchiveSrcDir) t.Errorf("Expected ArchiveSrcDir '%s', got '%s'", expectedArchiveSrcDir, config.ArchiveSrcDir)
} }
// Test String() method // Test String() method
expectedString := "newlib-esp32-esp-4.3.0_20250211-patch2" expectedString := "newlib-esp32-esp-4.3.0_20250211-patch3"
if config.String() != expectedString { if config.String() != expectedString {
t.Errorf("Expected String() '%s', got '%s'", expectedString, config.String()) t.Errorf("Expected String() '%s', got '%s'", expectedString, config.String())
} }

View File

@@ -27,10 +27,10 @@ func withDefaultCCFlags(ccflags []string) []string {
func GetNewlibESP32Config() compile.LibConfig { func GetNewlibESP32Config() compile.LibConfig {
return compile.LibConfig{ return compile.LibConfig{
Url: "https://github.com/goplus/newlib/archive/refs/tags/esp-4.3.0_20250211-patch2.tar.gz", Url: "https://github.com/goplus/newlib/archive/refs/tags/esp-4.3.0_20250211-patch3.tar.gz",
Name: "newlib-esp32", Name: "newlib-esp32",
Version: "esp-4.3.0_20250211-patch2", Version: "esp-4.3.0_20250211-patch3",
ArchiveSrcDir: "newlib-esp-4.3.0_20250211-patch2", ArchiveSrcDir: "newlib-esp-4.3.0_20250211-patch3",
} }
} }