Skip to content

Commit

Permalink
DEBUG: sof-plugin: use clang/clang++ to build libsof-ns.so
Browse files Browse the repository at this point in the history
Signed-off-by: Yong Zhi <yong.zhi@intel.com>
  • Loading branch information
yongzhi1 committed Jun 24, 2024
1 parent df39f01 commit 078d7ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/plugin/modules/ov_noise_suppression/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Noise suppression module
find_package(OpenVINO COMPONENTS Runtime)

set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_COMPILER clang++)
add_compile_options(-march=meteorlake)

if(OpenVINO_FOUND)
add_library(sof_ns_interface STATIC noise_suppression_interface.cpp)
target_link_libraries(sof_ns_interface PRIVATE -Wl,--export-dynamic)
Expand All @@ -20,7 +24,7 @@ add_library(sof_ns MODULE noise_suppression.c)
target_link_libraries(sof_ns PRIVATE sof_ns_interface)
target_link_libraries(sof_ns PRIVATE -Wl,--export-dynamic)
sof_append_relative_path_definitions(sof_ns)
target_compile_options(sof_ns PRIVATE -DPIC -g -O3 -Wl,-EL -Wall -Werror -DCONFIG_LIBRARY -imacros${config_h})
target_compile_options(sof_ns PRIVATE -DPIC -g -O3 -Wl,-EL -Wall -DCONFIG_LIBRARY -imacros${config_h})
install(TARGETS sof_ns DESTINATION /usr/lib/x86_64-linux-gnu/alsa-lib)

target_include_directories(sof_ns PRIVATE
Expand Down

0 comments on commit 078d7ca

Please sign in to comment.