Skip to content

Conversation

@DeeSee
Copy link

@DeeSee DeeSee commented Jul 22, 2020

No description provided.

Copy link
Author

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 :(

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?

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

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<>.

Copy link
Author

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?

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.

Copy link
Author

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

@DeeSee DeeSee force-pushed the refactor_clang_extra_flags branch from 2dd160f to b384fbb Compare July 23, 2020 07:12
@adrian-prantl
Copy link

@swift-ci test

@DeeSee DeeSee marked this pull request as ready for review July 24, 2020 06:20
@adrian-prantl adrian-prantl merged commit a4a2994 into swiftlang:swift/master Jul 24, 2020
@adrian-prantl
Copy link

Could you please create two identical PRs for swift/master-rebranch and swift/master-next ?

@DeeSee
Copy link
Author

DeeSee commented Jul 24, 2020

Sure!

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

Successfully merging this pull request may close these issues.

3 participants