Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoExecStack; Run target #4470

Merged
merged 1 commit into from
May 3, 2021
Merged
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
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
-Wformat-truncation=0 # squelch warning about snprintf truncating strings (see PR #3977)
-Wno-free-nonheap-object # https://github.com/surge-synthesizer/surge/issues/4251
)
add_link_options("-Wl,-z,noexecstack" )
endif()
endif()

Expand Down Expand Up @@ -943,6 +944,14 @@ if( BUILD_SURGE_XT )

get_target_property( SURGE_XT_OUTPUT_DIR surge-xt RUNTIME_OUTPUT_DIRECTORY )

# Really just a little convnience for BP on lin and win
add_custom_target( surge-xt-run-standalone )
add_dependencies( surge-xt-run-standalone surge-xt_Standalone )
add_custom_command( TARGET surge-xt-run-standalone
POST_BUILD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND "${SURGE_XT_OUTPUT_DIR}/Standalone/Surge XT" )

add_custom_target( Surge-XT-Packaged ALL )
add_dependencies( Surge-XT-Packaged surge-xt_All )
add_dependencies( Surge-XT-Packaged surge-xt_VST3 )
Expand Down