summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-05-21 10:37:36 +0800
committerruki <[email protected]>2023-05-21 10:37:36 +0800
commit992cc3c22e49a7a7f8a47d6b10d34af0128c58af (patch)
tree8bc5a771740a2277689ad6782959c434f3548ee7
parent48bea0307854d0ecdaa39e3e4d5a770e4f4cdd48 (diff)
fix typo
-rw-r--r--xmake/core/sandbox/modules/import/core/language/language.lua28
1 files changed, 2 insertions, 26 deletions
diff --git a/xmake/core/sandbox/modules/import/core/language/language.lua b/xmake/core/sandbox/modules/import/core/language/language.lua
index 1ac3bc671..6ab75df08 100644
--- a/xmake/core/sandbox/modules/import/core/language/language.lua
+++ b/xmake/core/sandbox/modules/import/core/language/language.lua
@@ -62,79 +62,55 @@ end
-- load the language from the given name (c++, objc++, swift, golang, asm, ...)
function sandbox_core_language.load(name)
-
- -- load it
local instance, errors = language.load(name)
if not instance then
raise(errors)
end
-
- -- ok
return instance
end
-- load the language from the given source kind: cc, cxx, mm, mxx, sc, go, as ..
function sandbox_core_language.load_sk(sourcekind)
-
- -- load it
local instance, errors = language.load_sk(sourcekind)
if not instance then
raise(errors)
end
-
- -- ok
return instance
end
-- load the language from the given source extension: .c, .cpp, .m, .mm, .swift, .go, .s ..
function sandbox_core_language.load_ex(extension)
-
- -- load it
local instance, errors = language.load_ex(extension)
if not instance then
raise(errors)
end
-
- -- ok
return instance
end
-- get source kind of the source file name
function sandbox_core_language.sourcekind_of(sourcefile)
-
- -- get it
local sourcekind, errors = language.sourcekind_of(sourcefile)
if not sourcekind then
raise(errors)
end
-
- -- ok
return sourcekind
end
-- get extension of the source kind
function sandbox_core_language.extension_of(sourcekind)
-
- -- get it
local extension, errors = language.extension_of(sourcekind)
if not extension then
raise(errors)
end
-
- -- ok
return extension
end
-- get linker info (kind and flag) of the source kinds
-function sandbox_core_language.linkerinfo_of(targetkind, sourcekinds)
-
- -- get it
- local linkerinfo, errors = language.linkerinfo_of(targetkind, sourcekinds)
+function sandbox_core_language.linkerinfos_of(targetkind, sourcekinds)
+ local linkerinfo, errors = language.linkerinfos_of(targetkind, sourcekinds)
if not linkerinfo then
raise(errors)
end
-
- -- ok
return linkerinfo
end