-
Notifications
You must be signed in to change notification settings - Fork 351
Refactor clang extra args addition #1531
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
Refactor clang extra args addition #1531
Conversation
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.
@adrian-prantl I think I need some help here.
I get the following error when compiling:
path/to/swift_workspace/llvm-project/lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp:1476:9: error: no type named 'StringSet' in namespace 'llvm'; did you mean 'StringRef'?
llvm::StringSet unique_flags;
~~~~~~^~~~~~~~~
StringRef
I've triple-checked everything, tried to replace this import with invalid one to make sure I'm editing the right file, cleaned build folder and now I've run out of ideas :(
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.
StringSet is relatively new. Does it actually exist on the branch you are compiling on?
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.
Otherwise you can use StringMap<bool> on master and StringSet on master-next and master-rebranch
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.
Ah: http://llvm.org/doxygen/StringSet_8h_source.html
I think it's StringSet<>.
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.
Thanks! This was the issue. Didn't know that when all template args are defaulted you still need to use template marks :(
Now I can confirm that it's compiling, is it possible to run address sanitizer on this branch?
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.
There is no way to run the Asan Jenkins job on a PR, but you can run it locally with the --enable-asan (and --enable-ubsan) build-script options.
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.
Thanks! I've run ./swift/utils/build-script -r --lldb --enable-asan --enable-ubsan locally and it seems to finish successfully
2dd160f to
b384fbb
Compare
|
@swift-ci test |
|
Could you please create two identical PRs for swift/master-rebranch and swift/master-next ? |
|
Sure! |
No description provided.