Skip to content

Commit

Permalink
src/platform.hh: fix or1k build
Browse files Browse the repository at this point in the history
Fix the following or1k build failure raised since version 0.2.2 and
27755f6:

In file included from /home/buildroot/autobuild/run/instance-0/output-1/host/or1k-buildroot-linux-uclibc/sysroot/usr/include/lua.hpp:6,
                 from ../src/lua.hh:23,
                 from ../src/parser.hh:4,
                 from ../src/ffilib.cc:7:
../src/ffilib.cc: In static member function 'static void ffi_module::setup(lua_State*)':
../src/ffilib.cc:1616:28: error: expected ')' before 'FFI_ARCH_NAME'
 1616 |         lua_pushliteral(L, FFI_ARCH_NAME);
      |                            ^~~~~~~~~~~~~

Fixes: 27755f6
 - http://autobuild.buildroot.org/results/4e14753732c5b6fe8ba9ecc4050ffb35f471c428

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine authored and q66 committed May 23, 2024
1 parent 09413f2 commit 2294e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform.hh
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
# endif
#elif defined(__OR1K__)
# define FFI_ARCH FFI_ARCH_OR1K
# define FFO_ARCH_NAME "or1k"
# define FFI_ARCH_NAME "or1k"
#elif defined(__riscv) || defined(__riscv__)
# if __riscv_xlen == 32
# define FFI_ARCH FFI_ARCH_RV32
Expand Down

0 comments on commit 2294e61

Please sign in to comment.