summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/compiler-core/slang-gcc-compiler-util.cpp7
-rw-r--r--source/compiler-core/slang-visual-studio-compiler-util.cpp7
2 files changed, 14 insertions, 0 deletions
diff --git a/source/compiler-core/slang-gcc-compiler-util.cpp b/source/compiler-core/slang-gcc-compiler-util.cpp
index f12f44338..a15e67750 100644
--- a/source/compiler-core/slang-gcc-compiler-util.cpp
+++ b/source/compiler-core/slang-gcc-compiler-util.cpp
@@ -735,6 +735,13 @@ static SlangResult _parseGCCFamilyLine(
cmdLine.addArg(libPath);
}
+ // Add compiler specific options from user.
+ for (auto compilerSpecificArg : options.compilerSpecificArguments)
+ {
+ const char* const arg = compilerSpecificArg;
+ cmdLine.addArg(arg);
+ }
+
return SLANG_OK;
}
diff --git a/source/compiler-core/slang-visual-studio-compiler-util.cpp b/source/compiler-core/slang-visual-studio-compiler-util.cpp
index d831abbd4..a7da11333 100644
--- a/source/compiler-core/slang-visual-studio-compiler-util.cpp
+++ b/source/compiler-core/slang-visual-studio-compiler-util.cpp
@@ -332,6 +332,13 @@ static void _addFile(
cmdLine.addPrefixPathArg("/LIBPATH:", libPath);
}
+ // Add compiler specific options from user.
+ for (auto compilerSpecificArg : options.compilerSpecificArguments)
+ {
+ const char* const arg = compilerSpecificArg;
+ cmdLine.addArg(arg);
+ }
+
return SLANG_OK;
}