Skip to content

Commit

Permalink
Merge pull request #476 from scchan/compile_libs_hc
Browse files Browse the repository at this point in the history
compile hcc libs in hc mode
  • Loading branch information
whchung authored Sep 30, 2017
2 parents 674c237 + 9a2ae7e commit 31bd221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cmake/MCWAMP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ macro(amp_target name )
target_include_directories(${name} PRIVATE ${MCWAMP_INC_DIR})
target_include_directories(${name} SYSTEM INTERFACE $<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>)
add_libcxx_option_if_needed(${name})
target_compile_options(${name} PUBLIC -std=c++amp -fPIC)
target_compile_options(${name} PUBLIC -hc -std=c++amp -fPIC)

# Enable debug line info only if it's a release build and HCC_RUNTIME_DEBUG is OFF
# Otherwise, -gline-tables-only would override other existing debug flags
Expand Down

0 comments on commit 31bd221

Please sign in to comment.