Page MenuHomeFreeBSD

Add WITH_LLVM_BITCODE option.
Needs ReviewPublic

Authored by jonathan on Oct 18 2017, 2:31 PM.
Tags
None
Referenced Files
F156534135: D12719.id.diff
Thu, May 14, 12:16 PM
F156511034: D12719.id34106.diff
Thu, May 14, 6:52 AM
F156473729: D12719.id34107.diff
Wed, May 13, 10:21 PM
Unknown Object (File)
Mon, May 11, 10:21 AM
Unknown Object (File)
Tue, Apr 28, 5:48 AM
Unknown Object (File)
Mon, Apr 27, 1:15 PM
Unknown Object (File)
Mon, Apr 27, 5:36 AM
Unknown Object (File)
Sat, Apr 25, 9:13 PM

Details

Summary

This new option controls whether to build (and install) LLVM IR versions
of binaries and libraries alongside conventional (ELF) versions. Rather
than depending implicitly on LLVM_LINK being defined, an explicit option
(that errors out if XLLVM_LINK is not provided) is clearer with a more
obvious failure mode. It also provides a clearer signal for future
changes (e.g., the ability to build ELF binaries and libraries via IR
instead of the usual object-file workflow) to depend on.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 12108
Build 12409: arc lint + arc unit

Event Timeline

share/mk/bsd.lib.mk
187

I believe the current convention is to test for == "yes" when that is what you mean.

189

test and logic appear to use LLVM_LINK, so the error should refer to that.

share/mk/bsd.prog.mk
157

same comments as for bsd.lib.mk

share/mk/src.opts.mk
183

shouldn't this be in bsd.opts.mk or src.opts.mk but not both?

share/mk/bsd.lib.mk
187

share/mk/bsd.opts.mk says:

These should be tested with == "no" or != "no" in makefiles.