ENGINE-212 Fixed /bin/lldb not letting DYLD_* go through on MacOS, when debugging tests with lldb
authorEdouard Tisserant <edouard@pep-project.org>
Mon, 12 Jun 2017 15:33:36 +0200
changeset 185141014174857f
parent 1850 aa7bbc79e2e3
child 1852 8b786dad8b60
ENGINE-212 Fixed /bin/lldb not letting DYLD_* go through on MacOS, when debugging tests with lldb
https://developer.apple.com/library/content/documentation/Security/Conceptual/System_Integrity_Protection_Guide/RuntimeProtections/RuntimeProtections.html
test/Makefile
     1.1 --- a/test/Makefile	Mon Jun 12 11:53:23 2017 +0200
     1.2 +++ b/test/Makefile	Mon Jun 12 15:33:36 2017 +0200
     1.3 @@ -41,8 +41,10 @@
     1.4  
     1.5  ifeq ($(shell uname), Darwin)
     1.6      LIBPATH = DYLD_LIBRARY_PATH
     1.7 +    LLDB_BIN = /Applications/Xcode.app/Contents/Developer/usr/bin/lldb
     1.8  else
     1.9      LIBPATH = LD_LIBRARY_PATH
    1.10 +    LLDB_BIN = lldb
    1.11  endif
    1.12  
    1.13  TEST_CMD_PFX = $(LIBPATH)=$(HOME)/lib:../src HOME=$(TEST_HOME)
    1.14 @@ -69,7 +71,7 @@
    1.15  	$(TEST_CMD_PFX) ./$<
    1.16  
    1.17  %_lldb : % test_home_
    1.18 -	$(TEST_CMD_PFX) lldb ./$<
    1.19 +	$(TEST_CMD_PFX) $(LLDB_BIN) ./$<
    1.20  
    1.21  %_valgrind : % test_home_
    1.22  	$(TEST_CMD_PFX) valgrind --leak-check=yes ./$<