gcc/testsuite/g++.dg/contracts/except_preload_handler/Makefile
raw| 1 | CXXFLAGS=--std=c++17 -fcontract-continuation-mode=on |
| 2 | |
| 3 | default: assert_fail libhandle_contract_violation.so |
| 4 | |
| 5 | run: default |
| 6 | LD_PRELOAD=./libhandle_contract_violation.so ./assert_fail |
| 7 | |
| 8 | ./libhandle_contract_violation.so: ./handle_contract_violation.cpp |
| 9 | ${CXX} ${CXXFLAGS} -shared -fPIC -o $@ $< |
| 10 | |
| 11 | clean: |
| 12 | rm -fr ./*.o ./libhandle_contract_violation.so ./assert_fail |
| 13 |