[Chapel Merge] Fix the protobuf plugin build on Macs

Branch: refs/heads/master
Revision: e3509a2
Author: lydia-duncan
Log Message:

Merge pull request #16817 from lydia-duncan/protobufMac

Fix the protobuf plugin build on Macs
[reviewed by @mppf]

Contains a number of changes to fix the situation on OSX:

  • renames the generated types file for the typesRunner test to avoid
    conflicts with the Types standard module file due to macs ignoring
    capitalization
  • Use c++11 for the protobuf plugin
  • Add virtual designator to FieldGeneratorBase destructor as required
    by clang’s more strict checking
  • Add call to install_name_tool rpath update when on Macs to allow us
    to find the protoc libraries during the plugin’s execution.

Resolves Cray/chapel-private#1519

Passed the protobuf test directory on Macs and linux, and
release/examples on my Mac

Modified Files:
A test/library/packages/ProtobufProtocolSupport/endToEnd/typesTest/protoFile/typesTest.proto
A test/library/packages/ProtobufProtocolSupport/endToEnd/typesTest/read.chpl
A test/library/packages/ProtobufProtocolSupport/endToEnd/typesTest/read.py
A test/library/packages/ProtobufProtocolSupport/endToEnd/typesTest/write.chpl
A test/library/packages/ProtobufProtocolSupport/endToEnd/typesTest/write.py
R test/library/packages/ProtobufProtocolSupport/endToEnd/types/protoFile/types.proto
R test/library/packages/ProtobufProtocolSupport/endToEnd/types/read.chpl
R test/library/packages/ProtobufProtocolSupport/endToEnd/types/read.py
R test/library/packages/ProtobufProtocolSupport/endToEnd/types/write.chpl
R test/library/packages/ProtobufProtocolSupport/endToEnd/types/write.py
M test/library/packages/ProtobufProtocolSupport/typesRunner.chpl
M tools/protoc-gen-chpl/Makefile
M tools/protoc-gen-chpl/field_base.h

Compare: https://github.com/chapel-lang/chapel/compare/b00e9325ffce...e3509a29c315