summaryrefslogtreecommitdiffstats
path: root/SCons/cpp.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2023-01-29 00:52:07 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2023-01-29 00:52:07 (GMT)
commita220b3f5989db0696d9d03a0988cbcff60e90e59 (patch)
treef8cce0c05888743c2337bbc1a7a066c056165e4b /SCons/cpp.py
parente980c5bc26892ce4db1e45516e9983bbc6a2bd33 (diff)
parent04bc3eaab31c5437764b10ee942b19740b5139c9 (diff)
downloadSCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.zip
SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.tar.gz
SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.tar.bz2
Merge remote-tracking branch 'upstream/master' into fix_configure_marking_up_to_date
Diffstat (limited to 'SCons/cpp.py')
-rw-r--r--SCons/cpp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/SCons/cpp.py b/SCons/cpp.py
index 353aa70..144f498 100644
--- a/SCons/cpp.py
+++ b/SCons/cpp.py
@@ -591,6 +591,9 @@ class PreProcessor:
while not s[0] in '<"':
try:
s = self.cpp_namespace[s]
+ # strip backslashes from the computed include (-DFOO_H=\"foo.h\")
+ for c in '<">':
+ s = s.replace(f"\\{c}", c)
except KeyError:
m = function_name.search(s)