Changeset 3572 for trunk/Config.kmk


Ignore:
Timestamp:
Oct 24, 2022, 10:36:35 AM (3 years ago)
Author:
bird
Message:

Config.kmk,src/kmk/Makefile.kmk: Added temporary kludge for inconsistent quoting and escaping of DEFS properties among the compiler tools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r3552 r3572  
    124124 TOOL_FLEX_LEX = gflex
    125125endif
     126# Not all compiler tools currently do the same quoting of DEFS, so here's a
     127# temporary workaround.
     128ifn1of ($(KBUILD_TARGET), win)
     129 TMP_QUOTE_SLASH :=
     130else
     131 TMP_QUOTE_SLASH := \$(NO_SUCH_VARIABLE)
     132endif
    126133
    127134#
     
    183190
    184191DEFS += \
    185         KBUILD_PATH=\"/$(patsubst %/,%,$(MY_INST_DATA))\" \
    186         KBUILD_BIN_PATH=\"/$(patsubst %/,%,$(MY_INST_BIN))\"
     192        KBUILD_PATH=$(TMP_QUOTE_SLASH)"/$(patsubst %/,%,$(MY_INST_DATA))$(TMP_QUOTE_SLASH)" \
     193        KBUILD_BIN_PATH=$(TMP_QUOTE_SLASH)"/$(patsubst %/,%,$(MY_INST_BIN))$(TMP_QUOTE_SLASH)"
    187194endif
    188195
Note: See TracChangeset for help on using the changeset viewer.