Skip to content

Commit

Permalink
NoExecStack; Run target (#4470)
Browse files Browse the repository at this point in the history
1. add the -z,noexecstack linker on gnu cc. Closes #1701
2. Add a surge-xt-standalone-run target for command line fun
  • Loading branch information
baconpaul authored May 3, 2021
1 parent 32f6d8a commit 620d3f1
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit 620d3f1

Please sign in to comment.