mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-25 19:18:01 +02:00
Fail is wasm GNU not set. Use -gseparate-dwarf instead of -g
This commit is contained in:
parent
f9ecf3ae6b
commit
61790dd09b
1 changed files with 7 additions and 1 deletions
|
@ -643,6 +643,12 @@ namespace IDE
|
||||||
bool isExe = ((project.mGeneralOptions.mTargetType != Project.TargetType.BeefLib) && (project.mGeneralOptions.mTargetType != Project.TargetType.BeefTest)) || (isTest);
|
bool isExe = ((project.mGeneralOptions.mTargetType != Project.TargetType.BeefLib) && (project.mGeneralOptions.mTargetType != Project.TargetType.BeefTest)) || (isTest);
|
||||||
bool isDynLib = (project.mGeneralOptions.mTargetType == Project.TargetType.BeefLib) && (options.mBuildOptions.mBuildKind == .DynamicLib);
|
bool isDynLib = (project.mGeneralOptions.mTargetType == Project.TargetType.BeefLib) && (options.mBuildOptions.mBuildKind == .DynamicLib);
|
||||||
|
|
||||||
|
if (workspaceOptions.mToolsetType != .GNU)
|
||||||
|
{
|
||||||
|
gApp.OutputErrorLine("Workspace Build Toolset options must be set to GNU for WASM builds");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (isExe || isDynLib)
|
if (isExe || isDynLib)
|
||||||
{
|
{
|
||||||
var actualTargetPath = Path.GetActualPathName(targetPath, .. scope .());
|
var actualTargetPath = Path.GetActualPathName(targetPath, .. scope .());
|
||||||
|
@ -710,7 +716,7 @@ namespace IDE
|
||||||
linkLine.Append(" -pthread");
|
linkLine.Append(" -pthread");
|
||||||
|
|
||||||
if (workspaceOptions.mEmitDebugInfo != .No)
|
if (workspaceOptions.mEmitDebugInfo != .No)
|
||||||
linkLine.Append(" -g");
|
linkLine.Append(" -gseparate-dwarf");
|
||||||
|
|
||||||
if (!workspaceOptions.mRuntimeChecks)
|
if (!workspaceOptions.mRuntimeChecks)
|
||||||
linkLine.Append(" -s ASSERTIONS=0");
|
linkLine.Append(" -s ASSERTIONS=0");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue