Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit368dcfb

Browse files
authored
don't rebuild (#4230)
1 parenta8115c1 commit368dcfb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

‎src/fsharp/FSharp.Build/WriteCodeFragment.fs‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,19 @@ open System.Reflection"
113113
letsb= StringBuilder().AppendLine(boilerplate).AppendLine()
114114
letcode= Array.fold(fun(sb:StringBuilder)(item:ITaskItem)-> sb.AppendLine(WriteCodeFragment.GenerateAttribute item)) sb_assemblyAttributes
115115
code.AppendLine().AppendLine("do()")|> ignore
116+
letfileName=_outputFile.ItemSpec
116117
letoutputFileItem=
117-
ifnot(isNull_outputFile)&&not(isNull_outputDirectory)&&not(Path.IsPathRooted(_outputFile.ItemSpec))then
118-
TaskItem(Path.Combine(_outputDirectory.ItemSpec,_outputFile.ItemSpec)):> ITaskItem
118+
ifnot(isNull_outputFile)&&not(isNull_outputDirectory)&&not(Path.IsPathRooted(fileName))then
119+
TaskItem(Path.Combine(_outputDirectory.ItemSpec,fileName)):> ITaskItem
119120
elif isNull_outputFilethen
120121
lettempFile= Path.Combine(Path.GetTempPath(), sprintf"tmp%s.fs"(Guid.NewGuid().ToString("N")))
121122
TaskItem(tempFile):> ITaskItem
122123
else
123124
_outputFile
124-
File.WriteAllText(_outputFile.ItemSpec, code.ToString())
125+
letcodeText= code.ToString()
126+
letalreadyExists=(try File.Exists fileName&& File.ReadAllText(fileName)= codeTextwith_->false)
127+
ifnot alreadyExiststhen
128+
File.WriteAllText(fileName, codeText)
125129
_outputFile<- outputFileItem
126130
true
127131
with e->

‎tests/scripts/compiler-perf-results.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,3 @@ https://github.com/manofstick/visualfsharp.git all-your-collections-are-belong-t
131131
https://github.com/manofstick/visualfsharp.git all-your-collections-are-belong-to-us 87dafbc17b494c438b6db9e59e064736bd8a44e2 ba63403cb5898596c5e875a14ce22b33ef618c01 221.58 11.19 31.91 48.23 66.05 52.99
132132
https://github.com/manofstick/visualfsharp.git all-your-collections-are-belong-to-us 87dafbc17b494c438b6db9e59e064736bd8a44e2 458e6c29d7e059a5a8a7b4cd7858c7d633fb5906 224.75 11.20 31.09 46.96 63.08 53.08
133133
https://github.com/manofstick/visualfsharp.git all-your-collections-are-belong-to-us 87dafbc17b494c438b6db9e59e064736bd8a44e2 7e1fd6ac330f86597f3167e8067cfd805a89eec9 235.48 10.83 33.47 47.17 65.56 52.50
134-

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp