File tree Expand file tree Collapse file tree 4 files changed +2144
-1
lines changed Expand file tree Collapse file tree 4 files changed +2144
-1
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,14 @@ bindings: .create-bindings .strip-autogen-comment .strip-nvml-h-linenumber
151
151
go fmt types_gen.go; \
152
152
cd -> /dev/null
153
153
rm -rf $(PKG_BINDINGS_DIR ) /nvml.yml $(PKG_BINDINGS_DIR ) /cgo_helpers.go $(PKG_BINDINGS_DIR ) /types.go $(PKG_BINDINGS_DIR ) /_obj
154
- go run $(GEN_BINDINGS_DIR ) /generateapi.go \
154
+ go run -tags generateapi \
155
+ $(GEN_BINDINGS_DIR ) /generateapi.go \
155
156
--sourceDir $(PKG_BINDINGS_DIR ) \
156
157
--output $(PKG_BINDINGS_DIR ) /zz_generated.api.go
158
+ go run -tags generatecgoapi \
159
+ $(GEN_BINDINGS_DIR ) /generatecgoapi.go \
160
+ --sourceDir $(PKG_BINDINGS_DIR ) \
161
+ --output $(PKG_BINDINGS_DIR ) /zz_generated.cgoapi.go
157
162
make fmt
158
163
159
164
.strip-autogen-comment : SED_SEARCH_STRING := // WARNING: This file has automatically been generated on
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
**/
16
16
17
+ //go:build generateapi
17
18
package main
18
19
19
20
import (
Original file line number Diff line number Diff line change
1
+ /**
2
+ # Copyright 2025 NVIDIA CORPORATION
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ **/
16
+
17
+ //go:build generatecgoapi
1
18
package main
2
19
3
20
import (
You can’t perform that action at this time.
0 commit comments