You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
<PropertyGroupCondition="'$(Configuration)'=='NativeOnlyDebug' Or '$(Configuration)'=='NativeOnlyRelease'">
66
+
<PropertyGroupCondition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='Release' Or '$(Configuration)'=='NativeOnlyDebug' Or '$(Configuration)'=='NativeOnlyRelease'">
Copy file name to clipboardExpand all lines: docs/GettingStarted.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,22 +96,24 @@ The following steps need to be executed *once* before the first build on a new c
96
96
97
97
##### Setting compile time options when building from Developer Command Prompt
98
98
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:
100
102
101
103
1.`DisableJIT` - Compile eBPF's *execution context* without support for eBPF JIT compiler.
102
104
1.`DisableInterpreter` - Compile eBPF's *execution context* without support for eBPF interpreter.
103
105
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`.
105
107
106
108
#### Building using Visual Studio IDE
107
109
108
110
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.
110
112
1. Rebuild the solution.
111
113
112
114
##### Setting compile time options when building from Visual Studio IDE
113
115
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:
115
117
116
118
1. Select the project to modify from the Solution Explorer.
117
119
1. Navigate to "`C/C++`" -> "`Preprocessor`" -> "`Preprocessor Definitions`"
0 commit comments