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

ccflags seems not ok #173

Open
guilvge opened this issue Nov 27, 2023 · 2 comments
Open

ccflags seems not ok #173

guilvge opened this issue Nov 27, 2023 · 2 comments

Comments

@guilvge
Copy link

guilvge commented Nov 27, 2023

hi:
when I use pygccxml, I used the code may cause some warning but error, and I know use which flag to fixed it.
for example: the code will show me [-Wnull-conversion], I can use flag " -Wno-null-conversion" to revert it, so I pass it in
ccflags=-Wno-null-conversion, but it is not ok, the last cmd will like:
"/usr/bin/castxml" -I"." -c -x c++ --castxml-cc-gnu "(" /usr/bin/clang++ -Wno-null-conversion ")" --castxml-gccxml -o /tmp/tmpxpsi9e2o.xml xxx, but it should be:
""/usr/bin/castxml" -I"." -c -x c++ -Wno-null-conversion --castxml-cc-gnu "(" /usr/bin/clang++ ")" --castxml-gccxml -o /tmp/tmpxpsi9e2o.xml xxx", the warning log will disapper by using this command. so I'm confused why the property "ccflags"
not work.

@guilvge
Copy link
Author

guilvge commented Dec 19, 2023

hi:
I find the --castxml-cc- "(" ... ")" is only used in preprocessor, so compile stage may not use it, and there is still a parameter named "flags", it is not used. Maybe we can use it as clang-option.

@guilvge
Copy link
Author

guilvge commented Dec 19, 2023

图片
I think we can add clang-opt here for potential usage

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

1 participant