From 992cc3c22e49a7a7f8a47d6b10d34af0128c58af Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 21 May 2023 10:37:36 +0800 Subject: fix typo --- .../modules/import/core/language/language.lua | 28 ++-------------------- 1 file 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 -- cgit v1.3.1