XGE and bStopXGECompilationAfterErrors

Hello,

I’ve been using Incredibuild but it seems that it always stops compiling after 1 error. I’ve tried to use bStopXGECompilationAfterErrors as explained in the docs, but it appears to be no longer supported? How can I prevent XGE from stopping after first compile error?

Hi ,

Where and how are you setting bStopXGECompilationAfterErrors? We tried a very simple test with the variable set to false and the build continued past the first error that we had introduced.

Hi ,

I was specifying it in Olok.target.sc. “Olok” Is my project name. Here is the constructor where i specified it.

    public Olok(TargetInfo Target)
    {
        MinFilesUsingPrecompiledHeaderOverride = 1;
        bFasterWithoutUnity = true;
        bUseRTTI = true;
        bEnableExceptions = true;
        bStopXGECompilationAfterErrors = false;

        PublicDependencyModuleNames.AddRange(new string[]
            {
                "Core",
                "CoreUObject",
                "Engine",
                "OnlineSubsystem",
                "OnlineSubsystemUtils",
                "AssetRegistry",
                "RHI",
                "RenderCore",
                "ShaderCore",
                "InputCore",
                "UMG", "Slate", "SlateCore"//,"Facebook","OnlineSubsystemFacebook"
			});

        //DynamicallyLoadedModuleNames.Add("Facebook");
        //DynamicallyLoadedModuleNames.Add("OnlineSubsystemFacebook");

        PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });

        LoadMySQLConnector(Target);

        //include boost headers
        PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "boost"));
    }

I get the following error when building…

1> Performing full C++ include scan (building a new target)
1> Creating makefile for OlokEditor (changes to module files)
1> Errors detected while compiling C:\Olok\Intermediate\Build\BuildRules\OlokModuleRules.dll:
1>c:\Olok\Source\Olok\Olok.Build.cs(23,9): error CS0103: The name ‘bStopXGECompilationAfterErrors’ does not exist in the current context
1>EXEC : error : UnrealBuildTool encountered an error while compiling source files

Hi ,

It was just pointed out to me that I overlooked something that I should have noticed. The variable you are trying to set is part of a different class. Try using this line instead: BuildConfiguration.bStopXGECompilationAfterErrors = false;

Hi ,

We have not heard back from you for a few days. Do you still need any help with this issue? I will be marking this issue as resolved for internal tracking purposes, but please feel free to add a comment and re-open the post if you need any more help.

Hi ,

Yes your answer helped me. Thanks for marking it correct.

Danny