Added TRACEM option. Use -g when building native code for tests.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 12 Dec 2001 15:19:55 +0000 (15:19 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 12 Dec 2001 15:19:55 +0000 (15:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1438 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile.target
test/Makefile.tests

index 36af7047fe79fb9b8294d56e390cb3d2b5b27dfd..849803d26086e0f46307c0ec822bacf4b981aa67 100644 (file)
@@ -28,6 +28,9 @@ LIBS     = $(LLCLIB) $(LOCAL_LIBS)
 ifeq ($(TRACE), yes)
     LLCFLAGS := $(LLCFLAGS) -trace
 endif
+ifeq ($(TRACEM), yes)
+    LLCFLAGS := $(LLCFLAGS) -tracem
+endif
 
 CC      = /opt/SUNWspro/bin/cc
 AS     = /opt/SUNWspro/bin/cc
@@ -56,7 +59,7 @@ ifdef PROG
        $(RM) $(PROG).tmp.bc
 
   $(PROG).native: $(OBJS:.o=.c)
-       $(CC) $(OBJS:.o=.c) -O $(LOCAL_LCFLAGS) $(CFLAGS) -lm -o $@
+       $(CC) $(OBJS:.o=.c) -g $(LOCAL_LCFLAGS) $(CFLAGS) -lm -o $@
 endif
 
 ## Special target to force target-dependent library to be compiled
index 36af7047fe79fb9b8294d56e390cb3d2b5b27dfd..849803d26086e0f46307c0ec822bacf4b981aa67 100644 (file)
@@ -28,6 +28,9 @@ LIBS     = $(LLCLIB) $(LOCAL_LIBS)
 ifeq ($(TRACE), yes)
     LLCFLAGS := $(LLCFLAGS) -trace
 endif
+ifeq ($(TRACEM), yes)
+    LLCFLAGS := $(LLCFLAGS) -tracem
+endif
 
 CC      = /opt/SUNWspro/bin/cc
 AS     = /opt/SUNWspro/bin/cc
@@ -56,7 +59,7 @@ ifdef PROG
        $(RM) $(PROG).tmp.bc
 
   $(PROG).native: $(OBJS:.o=.c)
-       $(CC) $(OBJS:.o=.c) -O $(LOCAL_LCFLAGS) $(CFLAGS) -lm -o $@
+       $(CC) $(OBJS:.o=.c) -g $(LOCAL_LCFLAGS) $(CFLAGS) -lm -o $@
 endif
 
 ## Special target to force target-dependent library to be compiled