This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake) | |
ExternalProject_Add(bebop_make | |
URL http://bebop.cs.berkeley.edu/smc/tarballs/bebop_make.tar.gz | |
SOURCE_DIR bebop/bebop_make | |
CONFIGURE_COMMAND cmake -E cmake_echo_color --red --bold "Don't skip configuration step if on non-linux platform see ${CMAKE_CURRENT_BINARY_DIR}/bebop/bebop_make/README!" | |
BUILD_COMMAND cmake -E echo "Skipping build step." | |
INSTALL_COMMAND cmake -E echo "Skipping install step." | |
) | |
ExternalProject_Get_property(bebop_make SOURCE_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SAN_CMP := -fno-omit-frame-pointer -fsanitize=address | |
SAN_STAT := -static-libstdc++ -static-libasan | |
BIN_CMP := -std=c++11 -c -I. main.cpp -O -g3 -o main.o | |
LIB_CMP := -std=c++11 my.cpp -o libmy.so -shared -fPIC -g3 | |
RUN := LD_LIBRARY_PATH=. ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(shell which llvm-symbolizer) | |
PRELOAD := LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.1 | |
lib-gcc: |