Skip to content

Update build.rs #26

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update build.rs #26

wants to merge 1 commit into from

Conversation

VladEmirX
Copy link

@VladEmirX VladEmirX commented Jun 1, 2025

Not sure but msvc doen't have -Werror flag
Anyway, I have some bug with compiling on Windows:

error: failed to run custom build command for tblgen v0.6.0
Caused by:
process didn't exit successfully: D:\spaceless\projs\rolang\target\debug\build\tblgen-a0e5f371761e9f4a\build-script-build (exit code: 1)
--- stderr
error occurred in cc-rs: command did not execute successfully (status code exit code: 2): "D:\_programs\VS\2022\VC\Tools\MSVC\14.44.35207\bin\HostX64\x64\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-std:c++17" "-I" "cc/include" "-I" "D:/_programs/msys64/clang64/include" "-Werror" "-ID:/_programs/msys64/clang64/include" "-std=c++17" "-stdlib=libc++" "-fno-exceptions" "-funwind-tables" "-D_FILE_OFFSET_BITS=64" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-FoD:\spaceless\projs\rolang\target\debug\build\tblgen-c2973b152bb99b4a\out\eaa0b8528c4d35fb-Record.o" "-c" "cc/lib\Record.cpp"

warning: tblgen@0.6.0: cl: ��������� ��ப� error D8021: �������⨬� �᫮��� ��㬥�� "/Werror"

#edit:

even with this fix it for some reason gives more warnings:

warning: tblgen@0.6.0: cl: ��������� ��ப� warning D9002: �ய�� �������⭮�� ��ࠬ��� "-std=c++17"
warning: tblgen@0.6.0: cl: ��������� ��ப� warning D9002: �ய�� �������⭮�� ��ࠬ��� "-stdlib=libc++"
warning: tblgen@0.6.0: cl: ��������� ��ப� warning D9002: �ய�� �������⭮�� ��ࠬ��� "-fno-exceptions"
warning: tblgen@0.6.0: cl: ��������� ��ப� warning D9002: �ய�� �������⭮�� ��ࠬ��� "-funwind-tables"

Maybe, think about this pull request not about as pull request but as a bug representation (cl takes unknown for it flags on Windows). I'm just new to github and not sure how to do it normally and also do not undarstand how cc works.

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

Successfully merging this pull request may close these issues.

1 participant