Skip to content

Commit 7cffe55

Browse files
Alan JowettCopilot
authored andcommitted
Align Debug/Release with native-only defaults
Enable DisableJIT and DisableInterpreter for Debug/Release to match NativeOnly behavior and update GettingStarted docs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c5c3d36 commit 7cffe55

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<PropertyGroup Condition="'$(AddressSanitizer)'=='True'">
6464
<EnableASAN>true</EnableASAN>
6565
</PropertyGroup>
66-
<PropertyGroup Condition="'$(Configuration)'=='NativeOnlyDebug' Or '$(Configuration)'=='NativeOnlyRelease'">
66+
<PropertyGroup Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='Release' Or '$(Configuration)'=='NativeOnlyDebug' Or '$(Configuration)'=='NativeOnlyRelease'">
6767
<DisableJIT>true</DisableJIT>
6868
<DisableInterpreter>true</DisableInterpreter>
6969
</PropertyGroup>

docs/GettingStarted.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,24 @@ The following steps need to be executed *once* before the first build on a new c
9696

9797
##### Setting compile time options when building from Developer Command Prompt
9898

99-
To build with the specific compile time options for disabling JIT compiler and/or the Interpreter, append "`/p:<option>=True`". Available options are:
99+
`Debug` and `Release` configurations now compile with both JIT compiler and interpreter disabled by default
100+
(the same behavior as `NativeOnlyDebug` and `NativeOnlyRelease`).
101+
The following properties are still available for explicit configuration:
100102

101103
1. `DisableJIT` - Compile eBPF's *execution context* without support for eBPF JIT compiler.
102104
1. `DisableInterpreter` - Compile eBPF's *execution context* without support for eBPF interpreter.
103105

104-
Both options are set when compiling with the "NativeOnlyDebug" or "NativeOnlyRelease" configurations.
106+
Both options are enabled by default in `Debug`, `Release`, `NativeOnlyDebug`, and `NativeOnlyRelease`.
105107

106108
#### Building using Visual Studio IDE
107109

108110
1. Open the `ebpf-for-windows.sln` solution.
109-
1. Switch the configuration to "`Debug`|`x64`". To build with the JIT and Interpreter disabled, switch the configuration to "`NativeOnlyDebug`|`x64`" instead.
111+
1. Switch the configuration to "`Debug`|`x64`" (or "`Release`|`x64`"). JIT and interpreter are disabled by default.
110112
1. Rebuild the solution.
111113

112114
##### Setting compile time options when building from Visual Studio IDE
113115

114-
To build with the specific compile time options for disabling JIT compiler and/or the interpreter:
116+
By default, these options are already enabled for `Debug` and `Release`. To set them manually for a project:
115117

116118
1. Select the project to modify from the Solution Explorer.
117119
1. Navigate to "`C/C++`" -> "`Preprocessor`" -> "`Preprocessor Definitions`"

0 commit comments

Comments
 (0)