Opened 9 years ago

Closed 9 years ago

#49241 closed enhancement (fixed)

llvm-gcc42: build against clang compilers on darwin15

Reported by: howarth.at.macports@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: haspatch Cc:
Port: llvm-gcc42

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The attached Portfile.diff adds the changes required to build against the Apple clang 7.0 compiler and older. This include...

  1. Adding a clang-optimization.patch to use #pragma clang optimize off/#pragma clang optimize on to avoid optimization bugs in compiling two subroutines under Apple Clang 6.0 or later.
  2. Use of reinplace to avoid passing -module and -no-undefined under the clang compiler
  3. Removal of the clang compiler blacklist and the section preventing builds on El Capitan

Tested on darwin15.

Attachments (2)

Portfile.diff (1.8 KB) - added by howarth.at.macports@… 9 years ago.
Portfile diff to build against the clang compilers
clang-optimization.patch (1.3 KB) - added by howarth.at.macports@… 9 years ago.
patch to avoid optimization errors in Apple Clang 6.0 or later

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by howarth.at.macports@…

Attachment: Portfile.diff added

Portfile diff to build against the clang compilers

Changed 9 years ago by howarth.at.macports@…

Attachment: clang-optimization.patch added

patch to avoid optimization errors in Apple Clang 6.0 or later

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jeremyhu@… removed
Description: modified (diff)
Keywords: haspatch added
Owner: changed from macports-tickets@… to jeremyhu@…
Summary: fix llvm-gcc42 to build against clang compilers on darwin15llvm-gcc42: build against clang compilers on darwin15
Type: defectenhancement

comment:2 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.