chore: fix some wrong commets

This commit is contained in:
Haolan
2025-09-09 17:45:02 +08:00
parent 6aa63121ff
commit d4474be921
7 changed files with 24 additions and 9 deletions

View File

@@ -167,10 +167,14 @@ func getESPClangPlatform(goos, goarch string) string {
return ""
}
// ldFlagsFromFileName extracts the library name from a filename for use in linker flags
// For example, "libmath.a" becomes "math" for use with "-lmath"
func ldFlagsFromFileName(fileName string) string {
return strings.TrimPrefix(strings.TrimSuffix(fileName, ".a"), "lib")
}
// compileWithConfig compiles libraries according to the provided configuration
// and returns the necessary linker flags for linking against the compiled libraries
func compileWithConfig(
compileConfig compile.CompileConfig,
outputDir string, options compile.CompileOptions,