mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 11:40:10 +01:00
genvk: options.filename --> args.target
Previously, for gfxstream the filename was "CMakeLists.txt", but that was changed with the prior commit. Not having a filename doesn't affect codegen, but does throw an error afterwards when timing statistics are thrown out. Luckily, args.target and options.filename are more or less synonymous in genvk.py, so use that. This should be fairly upstreamable too if we choose to do so. Reviewed-by: Aaron Ruby <aruby@blackberry.com> Acked-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
parent
1e49af4f71
commit
5781ca340a
1 changed files with 3 additions and 3 deletions
|
|
@ -1038,7 +1038,7 @@ def genTarget(args):
|
|||
createGenerator = genOpts[args.target][0]
|
||||
options = genOpts[args.target][1]
|
||||
|
||||
logDiag('* Building', options.filename)
|
||||
logDiag('* Building', args.target)
|
||||
logDiag('* options.versions =', options.versions)
|
||||
logDiag('* options.emitversions =', options.emitversions)
|
||||
logDiag('* options.defaultExtensions =', options.defaultExtensions)
|
||||
|
|
@ -1234,7 +1234,7 @@ if __name__ == '__main__':
|
|||
else:
|
||||
startTimer(args.time)
|
||||
reg.apiGen()
|
||||
endTimer(args.time, '* Time to generate ' + options.filename + ' =')
|
||||
endTimer(args.time, '* Time to generate ' + args.target + ' =')
|
||||
|
||||
if not args.quiet:
|
||||
logDiag('* Generated', options.filename)
|
||||
logDiag('* Generated', args.target)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue