diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-12-12 15:19:55 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-12-12 15:19:55 +0000 |
commit | 2836e8e7aac47461235fb678e601aaeb2ca6a555 (patch) | |
tree | 312f464ab7ad6e50598082c40fb3afd79e11fbd3 | |
parent | 299f6a90ecc3de344a748f4f93ea669e88a6576f (diff) | |
download | external_llvm-2836e8e7aac47461235fb678e601aaeb2ca6a555.zip external_llvm-2836e8e7aac47461235fb678e601aaeb2ca6a555.tar.gz external_llvm-2836e8e7aac47461235fb678e601aaeb2ca6a555.tar.bz2 |
Added TRACEM option. Use -g when building native code for tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1438 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Makefile.target | 5 | ||||
-rw-r--r-- | test/Makefile.tests | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/test/Makefile.target b/test/Makefile.target index 36af704..849803d 100644 --- a/test/Makefile.target +++ b/test/Makefile.target @@ -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 diff --git a/test/Makefile.tests b/test/Makefile.tests index 36af704..849803d 100644 --- a/test/Makefile.tests +++ b/test/Makefile.tests @@ -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 |