Programmatically enable Long Paths

We’re seeing failed builds due to long paths not being enabled. We have it enabled on the worker machine, but don’t see a way to programmatically set the option found in Settings->Editor Preferences->Experimental to True.

Any help would be appreciated.