Skip to content

Commit

Permalink
Rely on Makefile.rules in lldb/test/driver/batch_mode.
Browse files Browse the repository at this point in the history
This was hardcoding some make rules instead of relying on
Makefile.rules, which was causing some of the logic to be
incorrect for Windows.

Patch by: Adrian McCarthy
Differential Revision: http://reviews.llvm.org/D8363

llvm-svn: 232974
  • Loading branch information
Zachary Turner committed Mar 23, 2015
1 parent a6a53d1 commit 5028e33
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions lldb/test/driver/batch_mode/Makefile
@@ -1,28 +1,5 @@
CC ?= clang
ifeq "$(ARCH)" ""
ARCH = x86_64
endif
LEVEL = ../../make

ifeq "$(OS)" ""
OS = $(shell uname -s)
endif
C_SOURCES := main.c

CFLAGS ?= -g -O0
CWD := $(shell pwd)

LIB_PREFIX := lib

ifeq "$(OS)" "Darwin"
CFLAGS += -arch $(ARCH)
endif

all: a.out

a.out: main.o
$(CC) $(CFLAGS) -o a.out main.o

main.o: main.c
$(CC) $(CFLAGS) -c main.c

clean:
rm -rf $(wildcard *.o *~ *.dylib *.so a.out *.dSYM)
include $(LEVEL)/Makefile.rules

0 comments on commit 5028e33

Please sign in to comment.