From adc036f58ed4722f363abebce69223af9059b0ad Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 21 Jun 2020 15:42:14 -0700 Subject: Style --- pkg/python/gen.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pkg/python') diff --git a/pkg/python/gen.lua b/pkg/python/gen.lua index 32677cb5..152b4fee 100644 --- a/pkg/python/gen.lua +++ b/pkg/python/gen.lua @@ -34,21 +34,21 @@ if modules['zlib'] then table.insert(libs, 'zlib/libz.a') end -local sources = {} +local srcs = {} sub('modules.ninja', function() cflags{'-D Py_BUILD_CORE_BUILTIN'} for _, mod in pairs(modules) do for _, src in ipairs(mod) do local obj = src..'.o' - if not sources[obj] then + if not srcs[obj] then cc('Modules/'..src) - sources[obj] = true + srcs[obj] = true end end end end) -sources = table.keys(sources) +srcs = table.keys(srcs) cflags{'-D Py_BUILD_CORE'} @@ -86,7 +86,7 @@ cc('Python/sysmodule.c', nil, { cflags=string.format([[$cflags -D 'ABIFLAGS="%s"']], abiflags), }) -lib('libpython.a', {expand{'Modules/', sources}, paths[[ +lib('libpython.a', {expand{'Modules/', srcs}, paths[[ Modules/( getbuildinfo.c.o getpath.c.o -- cgit v1.2.3