mirror of
				https://github.com/goplus/llgo.git
				synced 2025-10-31 11:17:11 +08:00 
			
		
		
		
	chore: fix commets and format
Update internal/crosscompile/compile/rtlib/rt_test.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Update internal/crosscompile/compile/libc/libc_test.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Update internal/crosscompile/compile/libc/libc_test.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> chore: format contents
This commit is contained in:
		| @@ -325,7 +325,7 @@ func TestGetNewlibESP32ConfigRISCV(t *testing.T) { | |||||||
| 	} else { | 	} else { | ||||||
| 		for i, expected := range expectedCFlags { | 		for i, expected := range expectedCFlags { | ||||||
| 			if config.ExportCFlags[i] != expected { | 			if config.ExportCFlags[i] != expected { | ||||||
| 				t.Errorf("LibcCFlags[%d] mismatch. Expected '%s', got '%s'", i, expected, config.ExportCFlags[i]) | 				t.Errorf("ExportCFlags[%d] mismatch. Expected '%s', got '%s'", i, expected, config.ExportCFlags[i]) | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| @@ -458,7 +458,7 @@ func TestGetNewlibESP32ConfigXtensa(t *testing.T) { | |||||||
| 	} else { | 	} else { | ||||||
| 		for i, expected := range expectedCFlags { | 		for i, expected := range expectedCFlags { | ||||||
| 			if config.ExportCFlags[i] != expected { | 			if config.ExportCFlags[i] != expected { | ||||||
| 				t.Errorf("LibcCFlags[%d] mismatch. Expected '%s', got '%s'", i, expected, config.ExportCFlags[i]) | 				t.Errorf("ExportCFlags[%d] mismatch. Expected '%s', got '%s'", i, expected, config.ExportCFlags[i]) | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ import ( | |||||||
| 	"testing" | 	"testing" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| func TestGetNewlibESP32Config_LibConfig(t *testing.T) { | func TestGetCompilerRTConfig_LibConfig(t *testing.T) { | ||||||
| 	config := GetCompilerRTConfig() | 	config := GetCompilerRTConfig() | ||||||
|  |  | ||||||
| 	// Test basic configuration fields | 	// Test basic configuration fields | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ import ( | |||||||
| var needSkipDownload = false | var needSkipDownload = false | ||||||
|  |  | ||||||
| // getLibcCompileConfigByName retrieves libc compilation configuration by name | // getLibcCompileConfigByName retrieves libc compilation configuration by name | ||||||
| // Returns compilation file lists and corresponding cflags | // Returns the actual libc output dir, compilation config and err | ||||||
| func getLibcCompileConfigByName(baseDir, libcName, target, mcpu string) (outputDir string, cfg compile.CompileConfig, err error) { | func getLibcCompileConfigByName(baseDir, libcName, target, mcpu string) (outputDir string, cfg compile.CompileConfig, err error) { | ||||||
| 	if libcName == "" { | 	if libcName == "" { | ||||||
| 		err = fmt.Errorf("libc name cannot be empty") | 		err = fmt.Errorf("libc name cannot be empty") | ||||||
| @@ -48,7 +48,7 @@ func getLibcCompileConfigByName(baseDir, libcName, target, mcpu string) (outputD | |||||||
| } | } | ||||||
|  |  | ||||||
| // getRTCompileConfigByName retrieves runtime library compilation configuration by name | // getRTCompileConfigByName retrieves runtime library compilation configuration by name | ||||||
| // Returns compilation file lists and corresponding flags for the specified runtime library | // Returns the actual libc output dir, compilation config and err | ||||||
| func getRTCompileConfigByName(baseDir, rtName, target string) (outputDir string, cfg compile.CompileConfig, err error) { | func getRTCompileConfigByName(baseDir, rtName, target string) (outputDir string, cfg compile.CompileConfig, err error) { | ||||||
| 	if rtName == "" { | 	if rtName == "" { | ||||||
| 		err = fmt.Errorf("rt name cannot be empty") | 		err = fmt.Errorf("rt name cannot be empty") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Haolan
					Haolan