vm86 icon indicating copy to clipboard operation
vm86 copied to clipboard

xmake cannot compile this project

Open logerrors opened this issue 2 years ago • 1 comments

Note: If you use the fuzzy expressions such as 'can't use/no effect/problem/error', but don't give any relevant auxiliary information according to the template below, this issue will be not replied.

Describe the bug

cannot compile this project by xmake. this is screenshot. CleanShot 2022-01-25 at 09 18 27@2x

Expected behavior

it should compile without error.

Error output

error: src/tbox/libc/string/wcscat.c:48:5: error: this ‘while’ clause does not guard... [-Werror=misleading-indentation]
   48 |     while (*s) s++; --s;
      |     ^~~~~
src/tbox/libc/string/wcscat.c:48:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
   48 |     while (*s) s++; --s;
      |                     ^~
cc1: all warnings being treated as errors
  > in src/tbox/libc/string/wcscat.c

Related Environment

xmak version: v2.6.3+202201250059 run env: os -> ubuntu20.04, arch: x86_64

Additional context

Add any other context about the problem here.

logerrors avatar Jan 25 '22 01:01 logerrors

https://github.com/tboox/vm86/blob/3903534e64363d5a171831e70874cff6679046dd/xmake.lua#L55

try

add_requires("tbox 1.6.6", {configs = {cflags = "-Wno-error=misleading-indentation"}})

waruqi avatar Jan 25 '22 02:01 waruqi