-
Notifications
You must be signed in to change notification settings - Fork 17
support for the -stdlib flag
#27
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
base: master
Are you sure you want to change the base?
Conversation
mkornaukhov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you write an description or explanation?
| cxxCmdLine = append(cxxCmdLine, cxxArgs...) | ||
| cxxCmdLine = append(cxxCmdLine, "-Wp,-v", "-x", "c++", "/dev/null", "-fsyntax-only") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be replaced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And for what and why?
| objOutFile string // output file as specified in cmd line (.o for compilation, .gch/.pch for pch generation) | ||
| cxxName string // g++ / clang / etc. | ||
| cxxArgs []string // args like -Wall, -fpch-preprocess and many more, except: | ||
| cxxArgsIncludes []string // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO mark is present but not explained
| cxxArgsIncludes: make([]string, 0, 1), | ||
| cxxIDirs: MakeIncludeDirs(), | ||
| summary: MakeInvocationSummary(), | ||
| includesCache: nil, // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
internal/client/invocation.go
Outdated
| invocation.cxxArgs = append(invocation.cxxArgs, "-Xclang", xArg) | ||
| i++ | ||
| continue | ||
| } else if strings.HasPrefix(arg, "-stdlib=") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from clang docs: -stdlib=<arg>, --stdlib=<arg>, --stdlib <arg>
from gcc docs: -stdlib=libstdc++,libc++
No description provided.