summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/cl/features.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-25 00:33:07 +0800
committerruki <[email protected]>2020-09-25 00:33:07 +0800
commit90af4956738036172984f068502624bbc515cae7 (patch)
tree7cd7177becaf98e676ae8eaa478f042e14505d3a /xmake/modules/detect/tools/cl/features.lua
parent700f08a7bae11c22295f884610f98b7b99eb1790 (diff)
fix trailing white-space
Diffstat (limited to 'xmake/modules/detect/tools/cl/features.lua')
-rw-r--r--xmake/modules/detect/tools/cl/features.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/modules/detect/tools/cl/features.lua b/xmake/modules/detect/tools/cl/features.lua
index fb4c98cca..b9b5bb623 100644
--- a/xmake/modules/detect/tools/cl/features.lua
+++ b/xmake/modules/detect/tools/cl/features.lua
@@ -11,7 +11,7 @@
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
---
+--
-- Copyright (C) 2015-2020, TBOOX Open Source Group.
--
-- @author ruki
@@ -33,12 +33,12 @@ function _get_macro_defines(snippets, extension, opt)
-- get defines
local results = {}
- local defines = try
+ local defines = try
{
- function ()
+ function ()
os.runv(opt.program, table.join(opt.flags or {}, {"-nologo", "-Fo" .. objectfile, sourcefile, "-link", "-out:" .. binaryfile}), {envs = opt.envs})
return os.iorunv(binaryfile, {}, {envs = opt.envs})
- end
+ end
}
if defines then
for _, define in ipairs(defines:split("\n")) do
@@ -120,8 +120,8 @@ function check_features(opt)
return results
end
--- get features
---
+-- get features
+--
-- @param opt the argument options, e.g. {toolname = "", program = "", programver = "", flags = {}}
--
-- @return the features