Bug 246092

Summary: devel/llvm90: make ELFv2 default if --target doesn't contain OS version
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Brooks Davis <brooks>
Status: New ---    
Severity: Affects Only Me CC: powerpc
Priority: --- Keywords: patch
Version: LatestFlags: brooks: maintainer-feedback+
Hardware: powerpc   
OS: Any   
Description Flags
v1 none

Description Jan Beich freebsd_committer 2020-05-01 12:56:04 UTC
Similar to ports r531783 but for libclang.
Comment 1 Jan Beich freebsd_committer 2020-05-01 12:57:14 UTC
Created attachment 213994 [details]
Comment 2 Jan Beich freebsd_committer 2020-05-01 13:10:19 UTC
Comment on attachment 213994 [details]

> ++      if (TT.getOSMajorVersion() == 0 || TT.getOSMajorVersion() >= 13)

Alternatively, target ELF version can be derived from host (on powerpc64) via _CALL_ELF predefined macro.
Comment 3 Brooks Davis freebsd_committer 2020-05-01 17:06:44 UTC
LGTM, feel free to commit or I'll get around it eventually