[Lldb-commits] [lldb] 2ff545e - Modernize add-dsym test Makefile

Fred Riss via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 5 12:23:41 PST 2019


Author: Fred Riss
Date: 2019-11-05T12:22:59-08:00
New Revision: 2ff545e76d11bc4fdd7663945d6ac343575530fe

URL: https://github.com/llvm/llvm-project/commit/2ff545e76d11bc4fdd7663945d6ac343575530fe
DIFF: https://github.com/llvm/llvm-project/commit/2ff545e76d11bc4fdd7663945d6ac343575530fe.diff

LOG: Modernize add-dsym test Makefile

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/macosx/add-dsym/Makefile

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/macosx/add-dsym/Makefile b/lldb/packages/Python/lldbsuite/test/macosx/add-dsym/Makefile
index 5abcf02738c4..4e1ec2202d0b 100644
--- a/lldb/packages/Python/lldbsuite/test/macosx/add-dsym/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/macosx/add-dsym/Makefile
@@ -1,24 +1,14 @@
-CC ?= clang
-ifeq "$(ARCH)" ""
-	ARCH = x86_64
-endif
-
-ifeq "$(OS)" ""
-	OS = $(shell uname -s)
-endif
+C_SOURCES = main.c
 
-CFLAGS ?= -g -O0
+include Makefile.rules
 
-ifeq "$(OS)" "Darwin"
-	CFLAGS += -arch $(ARCH)
-endif
+all: a.out.dSYM hide.app/Contents/a.out.dSYM
 
-all: main.c clean
+hide.app/Contents/a.out.dSYM:
 	mkdir hide.app
 	mkdir hide.app/Contents
-	$(CC) $(CFLAGS) -g $<
 	mv a.out.dSYM hide.app/Contents
 	strip -x a.out
-
-clean:
-	rm -rf a.out a.out.dSYM hide.app
+ifneq "$(CODESIGN)" ""
+	$(CODESIGN) -fs - a.out
+endif


        


More information about the lldb-commits mailing list