-
-
Notifications
You must be signed in to change notification settings - Fork 783
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
compile_flags
plugin is too selective when filtering flags
#5272
Comments
compile_flags
plugin is to selective when filtering flagscompile_flags
plugin is too selective when filtering flags
? I don't know what you mean. and what is your problem? |
Oh sorry, I didn't realize that it was unclear! I've provided files to reproduce the issue here, but in short, the As another example, see msvc's |
It looks like it's on purpose: xmake/xmake/plugins/project/clang/compile_flags.lua Lines 32 to 41 in 5d982b9
I didn't know about compile_flags, what's the difference with compile_commands? |
The implementation of compile_flags is very old and many rule scripts are not implemented. As a result, some flags are missing. We need some time to do some refactoring to improve it. |
Xmake Version
v2.9.3 HEAD.a5da06f
Operating System Version and Architecture
GNU/Linux 6.8.0-35-generic Ubuntu KDE Plasma
Describe Bug
the
compile_flags
plugin is too selective when filtering through flags resulting in important flags being excludedExpected Behavior
All flags which control C or C (gcc's list, clang's documentation including flags but not in a nice list like gcc unfortunately, msvc's list) are included in the
compile_flags.txt
file.Actual Behavior
Only flags beginning with
-I
,/I
,-isystem
or-D
are included.Project Configuration
Additional Information and Error Logs
N/A
The text was updated successfully, but these errors were encountered: