Commit d78e3512 by John Kessenich

Minor change in command-line options.

parent 777cb2bf
...@@ -60,7 +60,7 @@ enum TOptions { ...@@ -60,7 +60,7 @@ enum TOptions {
EOptionMemoryLeakMode = 0x004, EOptionMemoryLeakMode = 0x004,
EOptionRelaxedErrors = 0x008, EOptionRelaxedErrors = 0x008,
EOptionGiveWarnings = 0x010, EOptionGiveWarnings = 0x010,
EOptionsLinkProgram = 0x020, EOptionLinkProgram = 0x020,
EOptionMultiThreaded = 0x040, EOptionMultiThreaded = 0x040,
EOptionDumpConfig = 0x080, EOptionDumpConfig = 0x080,
EOptionDumpReflection = 0x100, EOptionDumpReflection = 0x100,
...@@ -481,6 +481,7 @@ bool ProcessArguments(int argc, char* argv[]) ...@@ -481,6 +481,7 @@ bool ProcessArguments(int argc, char* argv[])
switch (argv[0][1]) { switch (argv[0][1]) {
case 'b': case 'b':
Options |= EOptionBil; Options |= EOptionBil;
Options |= EOptionLinkProgram;
break; break;
case 'c': case 'c':
Options |= EOptionDumpConfig; Options |= EOptionDumpConfig;
...@@ -492,7 +493,7 @@ bool ProcessArguments(int argc, char* argv[]) ...@@ -492,7 +493,7 @@ bool ProcessArguments(int argc, char* argv[])
Options |= EOptionIntermediate; Options |= EOptionIntermediate;
break; break;
case 'l': case 'l':
Options |= EOptionsLinkProgram; Options |= EOptionLinkProgram;
break; break;
case 'm': case 'm':
Options |= EOptionMemoryLeakMode; Options |= EOptionMemoryLeakMode;
...@@ -701,7 +702,7 @@ int C_DECL main(int argc, char* argv[]) ...@@ -701,7 +702,7 @@ int C_DECL main(int argc, char* argv[])
// 1) linking all arguments together, single-threaded, new C++ interface // 1) linking all arguments together, single-threaded, new C++ interface
// 2) independent arguments, can be tackled by multiple asynchronous threads, for testing thread safety, using the old handle interface // 2) independent arguments, can be tackled by multiple asynchronous threads, for testing thread safety, using the old handle interface
// //
if (Options & EOptionsLinkProgram) { if (Options & EOptionLinkProgram) {
glslang::InitializeProcess(); glslang::InitializeProcess();
CompileAndLinkShaders(); CompileAndLinkShaders();
glslang::FinalizeProcess(); glslang::FinalizeProcess();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment