Hello, Freebsd-current.

  I've explored new options to build world and kernel with external
compiler. My goal is not to use "modern" compiler or "true"
cross-compilation, but fast building of system, which (almost)
identical to host system and doesn't need compiler (NanoBSD image for
router).

 What I found, that if WITHOUT_LCNAG and WITHOUT_GCC are both set, and
WITHOUT_CROSS_COMPILER and XCC/XCXX/XCPP are NOT set, world and
kernel is build with "system" compiler, but without "cross" options
(like -isystem and --sysroot). So, it works only by accident, and not
in way, that user (developer) could expect.

   So, even if here is no any settings for "cross"-build, build goes by
 "cross" (external toolchain) path, with usage of plain "cc" / "c++" /
 "cpp" binaries without full path and special options.

   What I expected, that in such case cross-clang will be built at
 "stage 3: cross tools" and used to build world, but no clang (And
 support libraries) or gcc will be built at "stage 4.4: building
 everything".

  Do we need such mode? Is current behavior (risky on, IMHO) Ok? I
 think, ideal situation is when WITHOUT_CLANG + WITHOUT_GCC but no
 WITHOUT_CROSS_COMPILER IS supported "as expected"
 (compiler-as-cross-tool is built, but compiler-as-part-of-everything
 is not), but at least system need to abort "both compilers are
 disabled and no cross-tools set" configuration for now, am I right?

-- 
// Black Lion AKA Lev Serebryakov <l...@freebsd.org>

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to