mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tests: unit: fix preprocess: pass -m32 for 32bit ABI (#11073)
This commit is contained in:
parent
bb90e41ee2
commit
ed11721b6b
@ -89,6 +89,10 @@ local Gcc = {
|
|||||||
get_defines_extra_flags = {'-std=c99', '-dM', '-E'},
|
get_defines_extra_flags = {'-std=c99', '-dM', '-E'},
|
||||||
get_declarations_extra_flags = {'-std=c99', '-P', '-E'},
|
get_declarations_extra_flags = {'-std=c99', '-P', '-E'},
|
||||||
}
|
}
|
||||||
|
if ffi.abi("32bit") then
|
||||||
|
table.insert(Gcc.get_defines_extra_flags, '-m32')
|
||||||
|
table.insert(Gcc.get_declarations_extra_flags, '-m32')
|
||||||
|
end
|
||||||
|
|
||||||
function Gcc:define(name, args, val)
|
function Gcc:define(name, args, val)
|
||||||
local define = '-D' .. name
|
local define = '-D' .. name
|
||||||
|
Loading…
Reference in New Issue
Block a user