From 4712662dc3dd63e43fad9354efc35a283fca6cfc Mon Sep 17 00:00:00 2001 From: weiyu Date: Fri, 21 Jun 2019 16:06:06 -0700 Subject: [PATCH] add clang flags so that libcds will be compiled with llvm pass --- .../demo/dependencies/libcds-2.3.2/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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() -- 2.34.1