Page MenuHomeFreeBSD

framework: add llvm.mk
ClosedPublic

Authored by tcberner on Dec 17 2022, 5:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 10:50 AM
Unknown Object (File)
Tue, Oct 29, 7:41 AM
Unknown Object (File)
Sun, Oct 20, 11:54 PM
Unknown Object (File)
Wed, Oct 16, 5:25 AM
Unknown Object (File)
Oct 5 2024, 7:32 AM
Unknown Object (File)
Oct 5 2024, 6:07 AM
Unknown Object (File)
Sep 28 2024, 9:48 PM
Unknown Object (File)
Sep 25 2024, 10:55 AM
Subscribers
None

Details

Summary

Add new llvm.mk to more easily depend on one of the two-hundred available llvm ports.

Supported args:
Version:

  • <none> -> ${LLVM_DEFAULT}
  • [0-9]+ -> ${ver$
  • min=[0-9]+: -> the maximum of ${LLVM_DFEAULT} and ${min}
  • max=[0-9]+: -> the minimum of ${LLVM_DEFAULT} and ${max}

Modes:

  • build: -> add build depend (default, if none given)
  • run: -> add run depend

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • framework: add llvm.mk -- example port
  • framework: add llvm.mk -- convert graphics/mesa-dri
graphics/mesa-dri/Makefile
11 ↗(On Diff #114233)

^ this seems to be needed, as the USES in Makefile.common comes too late.

Thanks, I had something locally but worse than yours :)

Mk/Uses/llvm.mk
93

We probably need a few more, some ports only wants libclang.so or libclang-cpp.so
Even if that doesn't changes anything right now as those ports will pull the full llvm package it might help in the future if we ever have subpackages.

Mk/Uses/llvm.mk
93

I think what is necessary will be more evident when converting the rest of the tree to use it :)

Mk/Uses/llvm.mk
93

True, but renaming this one to LLVM_LIBLLVM would be easier now than latter :)

  • framework: add llvm.mk -- add mode lib for LIB_DEPEND, and export library as LLVM_LIBLLVM
  • framework: add llvm.mk -- add mode lib for LIB_DEPEND, and export library as LLVM_LIBLLVM

Thanks.

This revision is now accepted and ready to land.Dec 17 2022, 8:04 PM