]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Tweak to allow the use of this Makefile with the ICC compiler.
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 29 Oct 2014 13:53:11 +0000 (13:53 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 29 Oct 2014 13:53:11 +0000 (13:53 +0000)
Patch by Gregory Czajkowski <gregczajkowski@yahoo.com>.
Related to BZ #339542.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2980

VEX/Makefile-gcc

index c07bf9be850c0253fbfac7f8a74810543b82f19a..12bf1ed1658b83d44978d673cd7a772010d6e450 100644 (file)
@@ -224,11 +224,13 @@ minidist:
 # This is very uggerly.  Need to sed out both "xyzzyN" and
 # "xyzzy$N" since gcc on different targets emits the constants
 # differently -- with a leading $ on x86/amd64 but none on ppc32/64.
+# ICC also emits the constants differently with a leading # #define
 pub/libvex_guest_offsets.h:
        rm -f auxprogs/genoffsets.s
        $(CC) $(CCFLAGS) -O -S -o auxprogs/genoffsets.s \
                                auxprogs/genoffsets.c
-       grep xyzzy auxprogs/genoffsets.s | grep "^#define" \
+       grep xyzzy auxprogs/genoffsets.s | grep "^[# ]*#define" \
+          | sed "s/# #define/#define/g" \
           | sed "s/xyzzy\\$$//g" \
           | sed "s/xyzzy#//g" \
           | sed "s/xyzzy//g" \