Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmake cannot compile this project #2

Open
logerrors opened this issue Jan 25, 2022 · 1 comment
Open

xmake cannot compile this project #2

logerrors opened this issue Jan 25, 2022 · 1 comment

Comments

@logerrors
Copy link

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: thiswhileclause 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 thewhile48 |     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.

@waruqi
Copy link
Member

waruqi commented Jan 25, 2022

vm86/xmake.lua

Line 55 in 3903534

add_requires("tbox 1.6.6")

try

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants