Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Modules/private/PhlexOptimization.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ include(CheckCXXCompilerFlag)

# Probe flag availability once at module-load time (results are cached in the
# CMake cache and reused across reconfigures).
check_cxx_compiler_flag("-fno-semantic-interposition" PHLEX_CXX_HAVE_NO_SEMANTIC_INTERPOSITION)

if(NOT APPLE)
check_cxx_compiler_flag("-fno-plt" PHLEX_CXX_HAVE_NO_PLT)

# Apple/Clang accepts -fno-semantic-interposition but the Apple toolchain
# driver treats it as unused for Mach-O builds.
check_cxx_compiler_flag("-fno-semantic-interposition" PHLEX_CXX_HAVE_NO_SEMANTIC_INTERPOSITION)
Comment thread
greenc-FNAL marked this conversation as resolved.
endif()

# ---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion phlex/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add_library(version_obj OBJECT version.cpp)
# version.cpp is generated into the build directory; clang-tidy cannot find
# .clang-tidy by walking the build-dir path, so disable linting for this file.
set_target_properties(version_obj PROPERTIES CXX_CLANG_TIDY "" POSITION_INDEPENDENT_CODE TRUE)
target_include_directories(version_obj PRIVATE ${PROJECT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/include)
target_include_directories(version_obj PRIVATE ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR}/include)
Comment thread
greenc-FNAL marked this conversation as resolved.

cet_make_library(
LIBRARY_NAME
Expand Down
Loading