Skip to content

Commit 4892929

Browse files
authored
Merge pull request #21 from Alan-Jowett/configuration
Pass configuration option to Convert-BpfToNative.ps1 script
2 parents 22a5bb4 + bcd50d9 commit 4892929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpf/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function(convert_to_native file_name out_name option)
117117
# Run the powershell script to convert the .o file to a .sys file
118118
add_custom_command(
119119
OUTPUT ${bpf_sys_file_path} ${bpf_pdb_file_path}
120-
COMMAND powershell -ExecutionPolicy Bypass -File ${EBPF_BIN_PATH}/Convert-BpfToNative.ps1 -FileName ${bpf_obj_file_name} -IncludeDir ${EBPF_INC_PATH} -OutDir ${CMAKE_CURRENT_BINARY_DIR} -BinDir ${EBPF_BIN_PATH}
120+
COMMAND powershell -ExecutionPolicy Bypass -File ${EBPF_BIN_PATH}/Convert-BpfToNative.ps1 -FileName ${bpf_obj_file_name} -IncludeDir ${EBPF_INC_PATH} -OutDir ${CMAKE_CURRENT_BINARY_DIR} -BinDir ${EBPF_BIN_PATH} -Configuration $<$<CONFIG:Debug>:Debug>$<$<CONFIG:Release>:Release>
121121
DEPENDS ${bpf_obj_file_path} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/export_program_info.log
122122
COMMENT "Converting BPF object ${bpf_obj_file_path} to native"
123123
POST_BUILD

0 commit comments

Comments
 (0)