SoftwareNetwork / sw

Software Manager. Build System, Build System Generator and Package Manager. C/C++ and other languages. Tools and libraries for Software Management.
https://software-network.org
Other
115 stars 23 forks source link

I want build sw self by `sw build --static`. How can I pass `-utf-8` to sw build process. #106

Closed huhuang03 closed 1 year ago

huhuang03 commented 1 year ago

The error code is:

Exception in file D:/dev/cppan2/client2/src/sw/builder/command.cpp:840, function execute1: When executing: [org.sw.demo.lexxmark.winflexbison.bison-3.8.2.1]/bison/src/print-graph.c
C:/Users/huhua/.sw/storage/pkg/31/bb/30ba/src/sdir/bison/src/print-graph.c(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
C:/Users/huhua/.sw/storage/pkg/31/bb/30ba/src/sdir/bison/src/print-graph.c(87): error C2001: newline in constant
C:/Users/huhua/.sw/storage/pkg/31/bb/30ba/src/sdir/bison/src/print-graph.c(87): fatal error C1057: unexpected end of file in macro expansion
command failed: exit code = 2
Total errors: 1

How can I modify the sw.cpp to pass the -utf-8 to all the compiler process.

Seems like need add utf-8 option to bision build. How can I do this?

egorpugin commented 1 year ago

I'm fixing that bison package. The issue was in it.