Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
245c30c2
Commit
245c30c2
authored
Jul 03, 2020
by
Marcin Ślusarz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --quiet option.
Being quiet should have been the default, but I guess it's too late now to change it.
parent
e7cb8bf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
StandAlone.cpp
StandAlone/StandAlone.cpp
+7
-1
No files found.
StandAlone/StandAlone.cpp
View file @
245c30c2
...
...
@@ -107,6 +107,7 @@ bool SpvToolsDisassembler = false;
bool
SpvToolsValidate
=
false
;
bool
NaNClamp
=
false
;
bool
stripDebugInfo
=
false
;
bool
beQuiet
=
false
;
//
// Return codes from main/exit().
...
...
@@ -661,6 +662,8 @@ void ProcessArguments(std::vector<std::unique_ptr<glslang::TWorkItem>>& workItem
variableName
=
argv
[
1
];
bumpArg
();
break
;
}
else
if
(
lowerword
==
"quiet"
)
{
beQuiet
=
true
;
}
else
if
(
lowerword
==
"version"
)
{
Options
|=
EOptionDumpVersions
;
}
else
if
(
lowerword
==
"help"
)
{
...
...
@@ -1108,7 +1111,8 @@ void CompileAndLinkShaderUnits(std::vector<ShaderCompUnit> compUnits)
if
(
!
(
Options
&
EOptionSuppressInfolog
)
&&
!
(
Options
&
EOptionMemoryLeakMode
))
{
PutsIfNonEmpty
(
compUnit
.
fileName
[
0
].
c_str
());
if
(
!
beQuiet
)
PutsIfNonEmpty
(
compUnit
.
fileName
[
0
].
c_str
());
PutsIfNonEmpty
(
shader
->
getInfoLog
());
PutsIfNonEmpty
(
shader
->
getInfoDebugLog
());
}
...
...
@@ -1615,6 +1619,8 @@ void usage()
" --keep-uncalled | --ku don't eliminate uncalled functions
\n
"
" --nan-clamp favor non-NaN operand in min, max, and clamp
\n
"
" --no-storage-format | --nsf use Unknown image format
\n
"
" --quiet do not print anything to stdout, unless
\n
"
" requested by another option
\n
"
" --reflect-strict-array-suffix use strict array suffix rules when
\n
"
" reflecting
\n
"
" --reflect-basic-array-suffix arrays of basic types will have trailing [0]
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment