Skip to content

Commit

Permalink
Centralize which version of clang to use (#125)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
Co-authored-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan-Jowett and Alan Jowett authored Sep 25, 2024
1 parent 0d8ed59 commit b5c7489
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
</PropertyGroup>
<PropertyGroup Condition="'$(AddressSanitizer)'=='True' And '$(MSBuildProjectExtension)'!='.csproj'">
<EnableASAN>true</EnableASAN>
</PropertyGroup>
<PropertyGroup>
<ClangExec>"$(VsInstallRoot)\VC\Tools\Llvm\bin\clang.exe"</ClangExec>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
Expand Down
2 changes: 1 addition & 1 deletion tools/netevent_monitor/netevent_monitor.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ $(Outdir)netevent_ebpf_ext_export_program_info.exe</Command>
<FileType>CppCode</FileType>
<Outputs>$(OutputPath)netevent_monitor.o</Outputs>
<Command>
clang $(ClangFlags) $(ClangIncludes) -I$(SolutionDir)include -c bpf\netevent_monitor.c -o $(OutputPath)netevent_monitor.o
$(ClangExec) $(ClangFlags) $(ClangIncludes) -I$(SolutionDir)include -c bpf\netevent_monitor.c -o $(OutputPath)netevent_monitor.o
pushd $(OutDir)
powershell -NonInteractive -ExecutionPolicy Unrestricted $(EbpfBinPath)\Convert-BpfToNative.ps1 -FileName %(Filename) -Type netevent_monitor -IncludeDir $(EbpfIncludePath) -Platform $(Platform) -Configuration $(Configuration)
popd
Expand Down
2 changes: 1 addition & 1 deletion tools/process_monitor_bpf/process_monitor_bpf.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ $(Outdir)ntos_ebpf_ext_export_program_info.exe</Command>
<FileType>CppCode</FileType>
<Outputs>$(OutputPath)process_monitor.o</Outputs>
<Command>
clang $(ClangFlags) $(ClangIncludes) -I$(SolutionDir)include -c process_monitor.c -o $(OutputPath)process_monitor.o
$(ClangExec) $(ClangFlags) $(ClangIncludes) -I$(SolutionDir)include -c process_monitor.c -o $(OutputPath)process_monitor.o
pushd $(OutDir)
powershell -NonInteractive -ExecutionPolicy Unrestricted $(EbpfBinPath)\Convert-BpfToNative.ps1 -FileName %(Filename) -Type process -IncludeDir $(EbpfIncludePath) -Platform $(Platform) -Configuration $(Configuration)
popd
Expand Down

0 comments on commit b5c7489

Please sign in to comment.