On 2021-05-20 13:47, Mark Millard wrote:
Chris portmaster at bsdforge.com wrote on
Thu May 20 20:09:29 UTC 2021 :

On 2021-05-20 12:21, Kevin Oberman wrote:
> . . .
>>
> You can greatly reduce the build-time for devel/llvm* by changing the
> config to BE_NATIVE to avoid building backends for all FreeBSD supported
> platforms. Obviously this is not acceptable for many cases, but if you
> never cross-compile for other platforms, it's a really big win.

If I understand correctly. Isn't your suggestion synonymous with
WITHOUT_CROSS_COMPILER?

So far as I know, devel/llvm* builds make no use of WITHOUT_CROSS_COMPILER
definitions ( documented in src.conf ) or what I mention below (also from
src.conf documentation).

As for what is analogous in src.conf's documentation for system
builds: BE_NATIVE in an devel/llvm* for a given context would be
analogous to using a specific mix of:

    WITHOUT_LLVM_TARGET_AARCH64 vs. WITH_LLVM_TARGET_AARCH64
    WITHOUT_LLVM_TARGET_ARM     vs. WITH_LLVM_TARGET_ARM
    WITHOUT_LLVM_TARGET_MIPS    vs. WITH_LLVM_TARGET_MIPS
    WITHOUT_LLVM_TARGET_POWERPC vs. WITH_LLVM_TARGET_POWERPC
    WITHOUT_LLVM_TARGET_RISCV   vs. WITH_LLVM_TARGET_RISCV
    WITHOUT_LLVM_TARGET_X86     vs. WITH_LLVM_TARGET_X86

Some of the mixes would simulate the various devel/llvm* ports
BE_NATIVE's intent for various platforms. (BE_NATIVE does not
work in all contexts, last I tried it anyway.)
Ahh. My mistake I guess. I somehow got the idea that defining
WITHOUT_CROSS_COMPILER caused llvm to build only what's needed
build/bootstrap for the arch it's (currently) running on. Which
would, of course. Slim down the buildtime/installed footprint.

Thanks for the clarification, Mark.

--Chris

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to