Add x86_64-openbsd to LLVM supported list

This commit is contained in:
Pierre Muller 2023-07-26 06:29:17 +02:00
parent 2ba3a9521c
commit 71ec7a94d1
3 changed files with 6 additions and 3 deletions

View File

@ -386,7 +386,7 @@ ifeq ($(findstring $(PPC_TARGET),x86_64 aarch64 arm),)
$(error The $(PPC_TARGET) architecture is not (yet) supported by the FPC/LLVM code generator)
endif
ifeq ($(findstring $(OS_TARGET),darwin iphonesim linux),)
ifeq ($(findstring $(OS_TARGET),darwin iphonesim linux openbsd),)
$(error The $(OS_TARGET) target OS is not (yet) supported by the FPC/LLVM code generator)
endif

View File

@ -1789,7 +1789,7 @@ implementation
idtxt : 'CLANG-LLVM';
asmbin : 'clang';
asmcmd: '-x ir $OPT -target $TRIPLET -c -o $OBJ $ASM $EXTRAOPT';
supported_targets : [system_x86_64_linux,system_aarch64_linux,system_arm_linux];
supported_targets : [system_x86_64_linux,system_aarch64_linux,system_arm_linux,system_x86_64_openbsd];
flags : [af_smartlink_sections,af_llvm];
labelprefix : '.L';
labelmaxlen : -1;

View File

@ -466,7 +466,10 @@ unit i_bsd;
flags : [tf_needs_symbol_size,tf_needs_dwarf_cfi,tf_library_needs_pic,tf_needs_symbol_type,
tf_files_case_sensitive, tf_under_development,
tf_dwarf_only_local_labels, tf_pic_default,
{ tf_pic_uses_got,}tf_smartlink_sections,tf_has_winlike_resources,tf_supports_hidden_symbols];
{$ifdef llvm}
tf_use_psabieh,
{$endif llvm}
{ tf_pic_uses_got,}tf_smartlink_sections,tf_has_winlike_resources,tf_supports_hidden_symbols];
cpu : cpu_x86_64;
unit_env : 'BSDUNITS';
extradefines : 'UNIX;HASUNIX;BSD';