This is an archive of the discontinued LLVM Phabricator instance.

tsan: update Go rules to use -std=c++17
ClosedPublic

Authored by MaskRay on Aug 9 2022, 5:57 PM.

Details

Summary

llvm-project has switched to require C++17.

Diff Detail

Event Timeline

MaskRay created this revision.Aug 9 2022, 5:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2022, 5:57 PM
MaskRay requested review of this revision.Aug 9 2022, 5:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2022, 5:57 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
thanm added a comment.Aug 9 2022, 7:08 PM

Looks ok. What tests have you run?

Looks ok. What tests have you run?

I haven't as I don't know how to use the scripts. Sorry :)

Looks ok. What tests have you run?

I haven't as I don't know how to use the scripts. Sorry :)

These scripts can be just executed w/o args from their dir. At least the Linux scrip runs a small test as well besides building.

dvyukov accepted this revision.Aug 10 2022, 12:05 AM
This revision is now accepted and ready to land.Aug 10 2022, 12:05 AM
% ./buildgo.sh
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
==================
WARNING: DATA RACE
Read at 0x00c011110000 by goroutine 2:
  <null>()
      <null>:0 +0x0

Previous write at 0x00c011110000 by main goroutine:
  <null>()
      <null>:0 +0x0
  <null>()
      <null>:0 +0x0

Goroutine 2 (running) created at:
  <null>()
      <null>:0 +0x0
==================
Found 1 data race(s)

Looks good :)

This revision was automatically updated to reflect the committed changes.