Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2018-04-04 00:52:43 +0300
committerGitHub <noreply@github.com>2018-04-04 00:52:43 +0300
commitf9475164d900ac5d7d9d3b115125ce9cd33cdc67 (patch)
treecc4afa4bf0aa111d6a633be432181c2f9a930dce /msvc/scripts
parent7a22783f256176e8e595f6a8940584b47dfad8af (diff)
[genproj] Add Mono.CSharp.pre and fix genproj postbuild bug (#7991)
We weren't emitting the postbuild script.
Diffstat (limited to 'msvc/scripts')
-rw-r--r--msvc/scripts/Mono.CSharp.pre1
-rw-r--r--msvc/scripts/genproj.cs2
2 files changed, 2 insertions, 1 deletions
diff --git a/msvc/scripts/Mono.CSharp.pre b/msvc/scripts/Mono.CSharp.pre
new file mode 100644
index 00000000000..fe17f9cc0d3
--- /dev/null
+++ b/msvc/scripts/Mono.CSharp.pre
@@ -0,0 +1 @@
+$(ProjectDir)\..\..\jay\jay.exe -c -o $(ProjectDir)\$(Platform)-parser.cs $(ProjectDir)\..\..\mcs\cs-parser.jay &lt; $(ProjectDir)\..\..\jay\skeleton.cs
diff --git a/msvc/scripts/genproj.cs b/msvc/scripts/genproj.cs
index 732c4f4ca15..1e70b65552d 100644
--- a/msvc/scripts/genproj.cs
+++ b/msvc/scripts/genproj.cs
@@ -1103,7 +1103,7 @@ class MsbuildGenerator {
properties.Append ($" </PropertyGroup>{NewLine}");
var prebuild_postbuild = new StringBuilder ();
- if (!String.IsNullOrWhiteSpace(prebuild) || !String.IsNullOrWhiteSpace(prebuild)) {
+ if (!String.IsNullOrWhiteSpace(prebuild) || !String.IsNullOrWhiteSpace(postbuild)) {
prebuild_postbuild.Append ($" <PropertyGroup>{NewLine}");
prebuild_postbuild.Append (prebuild);
prebuild_postbuild.Append (postbuild);