Ignore:
Timestamp:
Jan 23, 2015, 2:01:02 AM (10 years ago)
Author:
bird
Message:

tools/*WATCOM*: Pass --wcc-brain-damange to REDIRECT where appropriate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/OPENWATCOM.kmk

    r2732 r2749  
    148148endif
    149149
     150if $(KBUILD_KMK_REVISION) >= 2747
     151 TOOL_OPENWATCOM_ENV_SETUP_BD ?= $(call TOOL_OPENWATCOM_ENV_SETUP,$1,$2 --wcc-brain-damage)
     152else
     153 TOOL_OPENWATCOM_ENV_SETUP_BD ?= $(call TOOL_OPENWATCOM_ENV_SETUP,$1,$2)
     154endif
     155
     156
    150157# Functions for changing slashes (SQ = single quoted).
    151158if1of ($(KBUILD_HOST), os2 win)
     
    203210TOOL_OPENWATCOM_COMPILE_AS_OUTPUT = $(obj).err
    204211define TOOL_OPENWATCOM_COMPILE_AS_CMDS
    205         $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AS) \
     212        $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_AS) \
    206213                $(flags) \
    207214                $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
     
    219226TOOL_OPENWATCOM_COMPILE_C_OUTPUT = $(obj).err
    220227define TOOL_OPENWATCOM_COMPILE_C_CMDS
    221         $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CC) \
     228        $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_CC) \
    222229                $(flags) \
    223230                $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
     
    234241TOOL_OPENWATCOM_COMPILE_CXX_OUTPUT = $(obj).err
    235242define TOOL_OPENWATCOM_COMPILE_CXX_CMDS
    236         $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CXX) \
     243        $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_CXX) \
    237244                $(flags) \
    238245                $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
     
    273280               --append $(outbase).rsp \
    274281        )
    275         $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AR) $(flags) $(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) @$(outbase).rsp
     282        $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_AR) $(flags) $(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) @$(outbase).rsp
    276283endef
    277284
     
    280287TOOL_OPENWATCOM_LINK_PROGRAM_DEPORD =
    281288define TOOL_OPENWATCOM_LINK_PROGRAM_CMDS
    282         $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP,$(subst $(SP),,$(addsuffix ;,$(libpath))),-C $(dir $(out))) \
     289        $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,$(subst $(SP),,$(addsuffix ;,$(libpath))),-C $(dir $(out))) \
    283290                $(TOOL_OPENWATCOM_LD) \
    284291                $(flags) \
     
    299306TOOL_OPENWATCOM_LINK_DLL_DEPORD =
    300307define TOOL_OPENWATCOM_LINK_DLL_CMDS
    301         $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP,$(subst $(SP),,$(addsuffix ;,$(libpath))),-C $(dir $(out))) \
     308        $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,$(subst $(SP),,$(addsuffix ;,$(libpath))),-C $(dir $(out))) \
    302309                $(TOOL_OPENWATCOM_LD) \
    303310                $(flags) \
     
    318325TOOL_OPENWATCOM_LINK_SYSMOD_DEPORD =
    319326define TOOL_OPENWATCOM_LINK_SYSMOD_CMDS
    320         $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP,$(subst $(SP),,$(addsuffix ;,$(libpath))),-C $(dir $(out))) \
     327        $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,$(subst $(SP),,$(addsuffix ;,$(libpath))),-C $(dir $(out))) \
    321328                $(TOOL_OPENWATCOM_LD) \
    322329                $(flags) \
Note: See TracChangeset for help on using the changeset viewer.