From: weiyu Date: Fri, 21 Jun 2019 23:06:06 +0000 (-0700) Subject: add clang flags so that libcds will be compiled with llvm pass X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4712662dc3dd63e43fad9354efc35a283fca6cfc;p=c11concurrency-benchmarks.git add clang flags so that libcds will be compiled with llvm pass --- diff --git a/gdax-orderbook-hpp/demo/dependencies/libcds-2.3.2/CMakeLists.txt b/gdax-orderbook-hpp/demo/dependencies/libcds-2.3.2/CMakeLists.txt index a198e26..146ece8 100644 --- a/gdax-orderbook-hpp/demo/dependencies/libcds-2.3.2/CMakeLists.txt +++ b/gdax-orderbook-hpp/demo/dependencies/libcds-2.3.2/CMakeLists.txt @@ -110,6 +110,10 @@ endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") string(REGEX MATCHALL "-std=[^ ]+" cxx_std_found ${CMAKE_CXX_FLAGS} " dummy@rg") + + # compile with CDSPass + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xclang -load -Xclang /scratch/llvm/build/lib/libCDSPass.so -O1") + if(cxx_std_found) message("C++ std: ${cxx_std_found}") else()