diff options
| author | Michael Forney <mforney@mforney.org> | 2020-06-21 15:42:14 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-06-22 22:47:59 -0700 |
| commit | adc036f58ed4722f363abebce69223af9059b0ad (patch) | |
| tree | 88f655b98e149f5150bd99e04b92e603bab2a4b7 /pkg/python | |
| parent | d921287a261883e205eef33f077cee89027a030b (diff) | |
Style
Diffstat (limited to 'pkg/python')
| -rw-r--r-- | pkg/python/gen.lua | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
