1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

wasm improvements

This commit is contained in:
Brian Fiete 2022-03-24 11:59:00 -07:00
parent 17b29c7227
commit 474454382f
6 changed files with 257 additions and 22 deletions

View file

@ -589,9 +589,11 @@ namespace IDE
if (isExe || isDynLib)
{
var actualTargetPath = Path.GetActualPathName(targetPath, .. scope .());
String linkLine = scope String();
linkLine.Append("-o ");
IDEUtils.AppendWithOptionalQuotes(linkLine, targetPath);
IDEUtils.AppendWithOptionalQuotes(linkLine, actualTargetPath);
linkLine.Append(" ");
linkLine.Append(objectsArg);
@ -667,7 +669,8 @@ namespace IDE
linkLine.Replace('\\', '/');
var runCmd = gApp.QueueRun(compilerExePath, linkLine, project.mProjectDir, .UTF8);
var targetDir = Path.GetDirectoryPath(actualTargetPath, .. scope .());
var runCmd = gApp.QueueRun(compilerExePath, linkLine, targetDir, .UTF8);
runCmd.mReference = new .(project.mProjectName);
runCmd.mOnlyIfNotFailed = true;
var tagetCompletedCmd = new IDEApp.TargetCompletedCmd(project);

View file

@ -1061,16 +1061,16 @@ namespace IDE
public class WasmOptions
{
[Reflect]
public bool mEnableThreads = true;
public bool mEnableThreads = false;
public void Deserialize(StructuredData data)
{
mEnableThreads = data.GetBool("EnableThreads", true);
mEnableThreads = data.GetBool("EnableThreads", false);
}
public void Serialize(StructuredData data)
{
data.ConditionalAdd("EnableThreads", mEnableThreads, true);
data.ConditionalAdd("EnableThreads", mEnableThreads, false);
}
}