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
Lex/Yacc files aren't compiled in IDE generated files. #3662
Comments
I have improved cmake generator, you can try it again.
The makefile generator still needs a lot of work and is not supported yet, I will improve it in the future. |
Ah, sorry, didn't know that the makefile generator wasn't finished. Was it in the docs and I just missed it? Otherwise, it seems to work fine, thanks for the quick response :) |
I just fixed cmake generator, not makefile |
I have improved makefile generator, you can try it again.
|
xmake update -s dev |
Xmake Version
v2.7.8+master.025fbe955
Operating System Version and Architecture
macOS Ventura 13.2
Describe Bug
Take the example Lex and Yacc project located at /tests/projects/lex_yacc. If you compile it with just Xmake, it runs fine. However, if you try and generate a Makefile or CMakeLists.txt file to compile it with (with
xmake project -k makefile
orxmake project -k cmake
), it compile the source that lex or yacc spit out.In fact, in the generated build files, it doesn't even attempt to link against them, or even invoke the tools in the first place. The only thing it does is include the directory where Xmake in theory told yacc to output the header file.
Expected Behavior
A successful compilation.
Project Configuration
https://github.com/xmake-io/xmake/tree/025fbe9559af74fac774b76b39cbd28f1f5bba6d/tests/projects/lex_yacc
Additional Information and Error Logs
As you can see, the Makefile doesn't even mention yacc or lex, with the exception of including
build/.gens/calc/macosx/arm64/release/rules/yacc_yacc
.The text was updated successfully, but these errors were encountered: