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
{{ message }}
This repository was archived by the owner on Jun 7, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: bookserver/internal/feedback.py
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -276,6 +276,9 @@ def _platform_edit(
276
276
elifext==".rs":
277
277
# Rust doesn't support `setting line numbers <https://github.com/rust-lang/rfcs/issues/1862>`__ either.
278
278
fmt=""
279
+
elifext==".v":
280
+
# Quoting from section 19.7 of the IEEE Standard for Verilog Hardware Description Language (IEEE Std 1364-2005), the syntax for this compiler directive is ```line number "filename" level``, where ``level == 0`` indicates that this line doesn't precede or follow an include directive.
281
+
fmt='`line 1 "box {}" 0\n'
279
282
else:
280
283
# This is an unsupported language. It would be nice to report this as an error instead of raising an exception.
Copy file name to clipboardExpand all lines: bookserver/internal/scheduled_builder.py
+72-14Lines changed: 72 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,7 @@ def _scheduled_builder(
86
86
"rust": rust_builder,
87
87
"pic24-xc16-bullylib": xc16_builder,
88
88
"armv7-newlib-sim": armv7_builder,
89
+
"verilog": verilog_builder,
89
90
}.get(builder, None)
90
91
ifbuilder_funcisNone:
91
92
raiseRuntimeError(f"Unknown builder {builder}")
@@ -197,21 +198,21 @@ def copy_test_file_to_tmp(
197
198
returntest_file_name
198
199
199
200
200
-
# Given an list of arguments to pass as the first parameter of ``subprocess.run``, wrap this in runguard. Return an updates list of parameters for ``subprocess.run``.
201
+
# Given an list of arguments to pass as the first parameter of ``subprocess.run``, wrap this in runguard. Return an updated list of parameters for ``subprocess.run``.
201
202
defrunguard(
202
203
# A list of arguments comprising the first parameter of ``subprocess.run``.
203
204
args,
204
205
# The directory containing the executable to run in runguard.
205
206
cwd,
206
-
# Kill COMMAND after TIME seconds (float).
207
+
# Kill COMMAND after TIME seconds (float). Omitted if this argument is falsey.
207
208
time_s=15,
208
-
# Set maximum CPU time to TIME seconds (float).
209
+
# Set maximum CPU time to TIME seconds (float). Omitted if this argument is falsey.
209
210
cputime_s=10,
210
-
# Set all (total, stack, etc) memory limits to SIZE kB.
211
-
memsize_kb=100,
212
-
# Set maximum created filesize to SIZE kB.
211
+
# Set all (total, stack, etc) memory limits to SIZE kB. Omitted if this argument is falsey.
212
+
memsize_kb=100000,
213
+
# Set maximum created filesize to SIZE kB. Omitted if this argument is falsey.
213
214
filesize_kb=50,
214
-
# Set maximum no. processes to N.
215
+
# Set maximum no. processes to N. Omitted if this argument is falsey.
0 commit comments