diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-09-23 15:42:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-23 15:42:06 -0400 |
| commit | e9f0544aa4737d5cba8424f95485811b4839d76e (patch) | |
| tree | 17f2044335b84d722be26a7e1e5c6d67bc292436 /source/core/slang-gcc-compiler-util.cpp | |
| parent | 05af41d21d74d24871507e6f8f50574ea08c48a2 (diff) | |
Fix for preprocessor defines for C++ / C (#1063)
* First pass support for performance profiling
* Test across all elements
* Fix bug - sourceContents is not used, should use rawSource.
* * Add ability to get prelude from API.
* Allow specifying source language for render-test
* Made it possible to compile a test input file as C++
* Special handling for reflection
* Added C++ impl to performance-profile.slang
* Remove some clang warnings.
* Output profile timings on appveyor and other TC.
* Remove passing around of StdWriters (can use global).
Small comment improvements.
* Fix defines being passed through to Visual Studio.
* Fix bug handling preprocessor definitions in Gcc/Clang targets.
Diffstat (limited to 'source/core/slang-gcc-compiler-util.cpp')
| -rw-r--r-- | source/core/slang-gcc-compiler-util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/slang-gcc-compiler-util.cpp b/source/core/slang-gcc-compiler-util.cpp index 3c4c4ec15..7838ca25b 100644 --- a/source/core/slang-gcc-compiler-util.cpp +++ b/source/core/slang-gcc-compiler-util.cpp @@ -511,6 +511,8 @@ static SlangResult _parseGCCFamilyLine(const UnownedStringSlice& line, LineParse for (const auto& define : options.defines) { StringBuilder builder; + + builder << "-D"; builder << define.nameWithSig; if (define.value.getLength()) { |
