[PATCH] D136044: [compiler-rt][builtins] Skip building (b)float16 support on i386-freebsd

Dimitry Andric via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 16 11:33:31 PDT 2022


dim added a comment.

Another note to clarify: the problem is that the builtins are built *twice*, once for x86_64 and once for i386, the latter using the `-m32` compiler flag. In the CMake configuration phase however, the feature detection is always done with the default compiler flags, i.e. without `-m32`, and therefore it will find features that aren't supported for 32-bit targets.

(I'm not sure how this problem could be solved in a more general manner, except by re-running the whole CMake configuration logic for each and every separate target architecture, using the compiler flags to enable that architecture.  You would also have to have per-target config.h files, and the like...)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136044/new/

https://reviews.llvm.org/D136044



More information about the llvm-commits mailing list