Skip to content

Commit

Permalink
Merge branch 'fix/compile_flags' into 'master'
Browse files Browse the repository at this point in the history
fix: change cmake build order to propagate flags

See merge request multicore/drace!61
  • Loading branch information
philip-harr committed Sep 16, 2019
2 parents 6490563 + 49ab34a commit 15fdeb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions drace-client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ set(SOURCES

find_package(DynamoRIO 7.0 REQUIRED)

# Bind detectors prior to first "configure_DynamoRIO_client"
# as DR changes global vars
add_subdirectory("detectors")

add_library("drace-client" SHARED ${SOURCES})
target_include_directories("drace-client" PRIVATE "include")

Expand All @@ -28,8 +32,6 @@ use_DynamoRIO_extension("drace-client" drreg)
use_DynamoRIO_extension("drace-client" drwrap)
use_DynamoRIO_extension("drace-client" drsyms)

# Bind detectors
add_subdirectory("detectors")
target_link_libraries(
"drace-client" # main drace-libs
"drace-common" # drace and msr common libs
Expand Down
4 changes: 3 additions & 1 deletion drace-client/detectors/tsan/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
add_library("drace.detector.tsan" SHARED "tsan")
target_link_libraries("drace.detector.tsan" "tsan-common" "drace-common")
target_link_libraries("drace.detector.tsan"
PRIVATE "tsan-common"
PRIVATE "drace-common")
install(TARGETS "drace.detector.tsan" RUNTIME DESTINATION bin COMPONENT Runtime)

# copy detector dlls to drace-client binary dir
Expand Down

0 comments on commit 15fdeb4

Please sign in to comment.