diff options
author | Daniel Hahler <git@thequod.de> | 2019-09-22 14:57:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-22 14:57:44 +0200 |
commit | ed11721b6bb36042ab065b5045c8eb01115b8902 (patch) | |
tree | f098a25a4ccd3a5ef3bfb8084ed7f3361f609cec | |
parent | bb90e41ee2786561033f89f2fd7bb885492bb11b (diff) | |
download | rneovim-ed11721b6bb36042ab065b5045c8eb01115b8902.tar.gz rneovim-ed11721b6bb36042ab065b5045c8eb01115b8902.tar.bz2 rneovim-ed11721b6bb36042ab065b5045c8eb01115b8902.zip |
tests: unit: fix preprocess: pass -m32 for 32bit ABI (#11073)
-rw-r--r-- | test/unit/preprocess.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/preprocess.lua b/test/unit/preprocess.lua index 1073855a7d..3786bc2122 100644 --- a/test/unit/preprocess.lua +++ b/test/unit/preprocess.lua @@ -89,6 +89,10 @@ local Gcc = { get_defines_extra_flags = {'-std=c99', '-dM', '-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) local define = '-D' .. name |