Adapt asm output of clang that no #/$ is placed before data
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Tue, 5 Apr 2022 11:39:26 +0000 (12:39 +0100)
committerJochen Sprickerhof <jspricke@debian.org>
Tue, 5 Apr 2022 11:39:26 +0000 (12:39 +0100)
Forwarded: not-needed

Gbp-Pq: Name adapt-asm-output-of-clang-that-no-is-placed-before-data.patch

tools/cpp-define-generator/make_header.py

index 1b13923b5067544d8a5c5a1c40633c589ac222bc..ca87e5e7835cd2b80dd99fc3db487c855b034d7d 100755 (executable)
@@ -31,7 +31,7 @@ import sys
 def convert(input):
   """Find all defines in the compiler generated assembly and convert them to #define pragmas"""
 
-  asm_define_re = re.compile(r'">>(\w+) (?:\$|#)([-0-9]+) (?:\$|#)(0|1)<<"')
+  asm_define_re = re.compile(r'">>(\w+) (?:\$|#|)([-0-9]+) (?:\$|#|)(0|1)<<"')
   asm_defines = asm_define_re.findall(input)
   if not asm_defines:
     raise RuntimeError("Failed to find any asm defines in the input")