Skip to content

Commit

Permalink
[0.61] Disable V8 globally; turn it on only for Desktop builds (#5258)
Browse files Browse the repository at this point in the history
* Disable V8 by default

* Change files

* Add parallelism, increase timeouts

Co-authored-by: tudorm <tudorm@microsoft.com>
  • Loading branch information
tudorms and tudorm authored Jun 17, 2020
1 parent 1ee75ee commit fa132f4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ jobs:
msbuildArguments:
/p:RNW_PKG_VERSION_STR="$(RNW_PKG_VERSION_STR)"
/p:RNW_PKG_VERSION="$(RNW_PKG_VERSION)"
/p:USE_V8=true

- template: templates/publish-build-artifacts-for-nuget.yml
parameters:
Expand All @@ -105,6 +106,7 @@ jobs:
- job: RnwNativeBuildUniversal
displayName: Build Universal
dependsOn: RnwNpmPublish
timeoutInMinutes: 90
strategy:
matrix:
X64Debug:
Expand Down
2 changes: 2 additions & 0 deletions .ado/templates/build-rnw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ steps:
/p:PreferredToolArchitecture=${{parameters.preferredToolArchitecture}}
/p:PlatformToolset=${{parameters.platformToolset}}
/p:BaseIntDir=$(BaseIntDir)
/maxCpuCount:1
/p:CL_MPCount=1
${{parameters.msbuildArguments}}

- task: PublishBuildArtifacts@1
Expand Down
7 changes: 4 additions & 3 deletions .ado/windows-vs-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
# BuildPlatform: ARM64
pool:
vmImage: $(VmImage)
timeoutInMinutes: 60
timeoutInMinutes: 90
cancelTimeoutInMinutes: 5

steps:
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
BuildPlatform: x64
pool:
vmImage: $(VmImage)
timeoutInMinutes: 60
timeoutInMinutes: 90
cancelTimeoutInMinutes: 5

steps:
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
ArmRelease:
BuildConfiguration: Release
BuildPlatform: ARM
timeoutInMinutes: 60
timeoutInMinutes: 90
cancelTimeoutInMinutes: 5
#pool:
# vmImage: $(VmImage)
Expand Down Expand Up @@ -303,6 +303,7 @@ jobs:
msbuildArguments:
/p:RNW_PKG_VERSION_STR="Private Build"
/p:RNW_PKG_VERSION="1000,0,0,0"
/p:USE_V8=true

- task: CmdLine@2
displayName: Build react-native-win32 RNTester bundle
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "Disable V8 by default",
"packageName": "react-native-windows",
"email": "tudorm@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-06-16T23:10:02.316Z"
}
2 changes: 1 addition & 1 deletion vnext/PropertySheets/React.Cpp.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<HERMES_Version Condition="'$(HERMES_Version)' == ''">0.1.6</HERMES_Version>
<HERMES_Package Condition="'$(HERMES_Package)' == ''">$(SolutionDir)packages\ReactNative.Hermes.Windows.$(HERMES_Version)</HERMES_Package>

<USE_V8 Condition="'$(USE_V8)' == '' AND '$(Platform)' != 'ARM' AND '$(Platform)' != 'ARM64'">true</USE_V8>
<USE_V8 Condition="'$(USE_V8)' == ''">false</USE_V8>
<V8_Version Condition="'$(V8_Version)' == ''">0.2.7</V8_Version>
<V8_Package Condition="'$(V8_Package)' == ''">$(SolutionDir)packages\ReactNative.V8Jsi.Windows.$(V8_Version)</V8_Package>

Expand Down

0 comments on commit fa132f4

Please # to comment.