summaryrefslogtreecommitdiff
path: root/sal/CustomTarget_generated.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sal/CustomTarget_generated.mk')
-rw-r--r--sal/CustomTarget_generated.mk17
1 files changed, 1 insertions, 16 deletions
diff --git a/sal/CustomTarget_generated.mk b/sal/CustomTarget_generated.mk
index f5c07c3da59e..1828b63e7ef6 100644
--- a/sal/CustomTarget_generated.mk
+++ b/sal/CustomTarget_generated.mk
@@ -35,22 +35,7 @@ $(call gb_CustomTarget_get_target,sal/generated) : \
$(sal_DIR)/sal/typesizes.h :| $(sal_DIR)/sal/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
- echo '/* This file is autogenerated from configure script data */' > $@
- echo >> $@
- echo "#define SAL_TYPES_ALIGNMENT2 $(ALIGNOF_SHORT)" >> $@
- echo "#define SAL_TYPES_ALIGNMENT4 $(ALIGNOF_INT)" >> $@
-ifeq ($(SIZEOF_LONG),8)
- echo "#define SAL_TYPES_ALIGNMENT8 $(ALIGNOF_LONG)" >> $@
-else ifeq ($(SIZEOF_DOUBLE),8)
- echo "#define SAL_TYPES_ALIGNMENT8 $(ALIGNOF_DOUBLE)" >> $@
-else
- echo "#error alignment of some 8-byte type unknown" >> $@
-endif
- echo "#define SAL_TYPES_SIZEOFSHORT $(SIZEOF_SHORT)" >> $@
- echo "#define SAL_TYPES_SIZEOFINT $(SIZEOF_INT)" >> $@
- echo "#define SAL_TYPES_SIZEOFLONG $(SIZEOF_LONG)" >> $@
- echo "#define SAL_TYPES_SIZEOFLONGLONG $(SIZEOF_LONGLONG)" >> $@
- echo "#define SAL_TYPES_SIZEOFPOINTER $(SIZEOF_POINTER)" >> $@
+ cp $(SRCDIR)/config_host/config_typesizes.h $@
include $(SRCDIR)/solenv/inc/udkversion.mk