Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
cf801ca
Generalize the test runner a bit
lewing Mar 9, 2021
ed4f9be
checkpoint
lewing Apr 15, 2021
5177380
converted mono-config.js to mono-config.json
Daniel-Genkin May 25, 2021
5b24b97
Fixed tests as config is loaded async now
Daniel-Genkin May 25, 2021
03856e1
added line to end of file + more comments
Daniel-Genkin May 25, 2021
0bd956f
Merge branch 'main' into wasm-convert-config-to-json
Daniel-Genkin May 25, 2021
b2b93b8
added space that was accidentally removed
Daniel-Genkin May 25, 2021
77d39db
Addressed some PR comments
Daniel-Genkin May 25, 2021
a2f48fb
Addressed a few more PR comments
Daniel-Genkin May 25, 2021
7fe322f
changed post-js to pre-js
Daniel-Genkin May 26, 2021
8438e67
Fixed samples
Daniel-Genkin May 26, 2021
261c133
Fixed console sample
Daniel-Genkin May 27, 2021
dca4bbc
converted mono-config.js to mono-config.json
Daniel-Genkin May 25, 2021
c3d996d
Fixed tests as config is loaded async now
Daniel-Genkin May 25, 2021
f14f412
added line to end of file + more comments
Daniel-Genkin May 25, 2021
492eb2a
Print R2RDump Statistics in the Output File Instead of Console (#52278)
ivdiazsa May 20, 2021
e7bfefb
Use Assembly.Load as first option to load TempAssembly. (#52429)
StephenMolloy May 20, 2021
11b2f1a
Support string interning for InvokeJS, address string interning perfo…
kg May 20, 2021
0f887ce
[mono] LLVM 11 compatibility fixes (#53019)
imhameed May 20, 2021
881f491
StringValues.Count test null first (#52508)
benaadams May 20, 2021
993f8fa
Return null when Variant contains BSTR (#53030)
kant2002 May 20, 2021
118f54c
Fix OperatingSystem.IsAndroidVersionAtLeast() (#53034)
akoeplinger May 20, 2021
3eb2f9f
Make the lookup for getApplicationProtocol optional (#53001)
steveisok May 20, 2021
f15a7fc
Disable crossgen2determinism test on OSX arm64 (#53045)
trylek May 20, 2021
a5b1eac
Resolving ILLink warnings for Microsoft.Extensions.Configuration.Bind…
joperezr May 20, 2021
9487aad
Fix DataCommonEventSource EnterScope (#53043)
MihaZupan May 21, 2021
f48e281
Delete an unnecessary pessimization for x86. (#52803)
May 21, 2021
00dcb2c
Add a missing end of line to JITDUMP in lclmorph.cpp (#53028)
SingleAccretion May 21, 2021
a808b6a
Add UnmanagedCallConvAttribute (#52869)
elinor-fung May 21, 2021
4b7396b
Make DSA.Create, AesCcm, AesGcm, ChaCha20Poly1305 throw PNSE on iOS (…
filipnavara May 21, 2021
6e93da2
Rename Mac Catalyst dylib to libmonosgen, not libcoreclr (#53038)
directhex May 21, 2021
b4e3b82
[wasm] Fix few paths (#53049)
radekdoulik May 21, 2021
d66314a
Add mibc to the PE family of signatures (#53048)
hoyosjs May 21, 2021
0742487
add SslStream_RandomWrites_OK test (#52682)
wfurt May 21, 2021
4c030cd
Implement 64-bit type handle histogram counts (#52898)
jakobbotsch May 21, 2021
f206195
Big-endian fix: JsonWriterHelper (#52790)
uweigand May 21, 2021
ed1c2e2
Fix creation of platforms and sources package (#53073)
ViktorHofer May 21, 2021
4095d03
Com trimming related work (#52940)
LakshanF May 21, 2021
fd69361
Mark some APIs as unsupported on MacCatalyst (#53075)
MaximLipnin May 21, 2021
3d72de2
Disable UnmanagedCallConvTest on Android (#53079)
fanyang-mono May 21, 2021
80ca507
Allow more efficient marshalling to IDispatch (#53065)
kant2002 May 21, 2021
f3033d8
[main] Update dependencies from dnceng/internal/dotnet-optimization (…
dotnet-maestro[bot] May 21, 2021
fa494f7
Fixing nullability annotations on DateOnly and TimeOnly (#53088)
tannergooding May 21, 2021
b013fde
Override BaseType in TypeRefTypeSystemType (#52963)
jakobbotsch May 21, 2021
11c969a
Skip flakey mobile library test crashes (#52931)
mdh1418 May 21, 2021
92f7ba9
JIT: fix relop flags for peeled switch compare (#53096)
AndyAyersMS May 21, 2021
bd833ee
Remove unused field (#53100)
Tratcher May 21, 2021
19140e6
ensure we flush when a window limit is hit (#52797)
geoffkizer May 21, 2021
5b0f256
Fix typo tihs -> this (#52398)
jnyrup May 21, 2021
6eea7a3
Implement Initialize on HashAlgorithm (#51402)
vcsjones May 21, 2021
0b74ae5
Allow TimeZoneInfo display names to use any of the installed Windows …
mattjohnsonpint May 21, 2021
df96ac6
Revert "Allow TimeZoneInfo display names to use any of the installed …
mattjohnsonpint May 21, 2021
b3af123
Fix typos in comments (#53064)
Banyc May 22, 2021
738e7fe
remove pragma (#52481)
hrrrrustic May 22, 2021
96e09e2
Move GlobalizationMode initialization into a nested class (#53082)
marek-safar May 22, 2021
ea8a819
Integrate misc changes from nativeaot (#53063)
jkotas May 22, 2021
e9f61b2
Allow TimeZoneInfo display names to use any of the installed Windows …
mattjohnsonpint May 22, 2021
f87665e
System.Reflection.* missed Equals nullable annotations (#52162)
hrrrrustic May 22, 2021
40e2b68
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-maestro[bot] May 23, 2021
791a674
Avoid dependency on LINQ orderby iterators when building exception me…
marek-safar May 23, 2021
8b58d90
Remove redundant GeneratePackageOnBuild condition (#53107)
ViktorHofer May 23, 2021
81a435c
[iOS] Re-enable System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests (#53…
filipnavara May 23, 2021
65ccfd9
[iOS] Re-enable Brotli tests (#53069)
filipnavara May 23, 2021
a823b60
Some cleanup of `var_types` - related functions (#52418)
SingleAccretion May 24, 2021
4cead3f
Fix a 32-bit specific bug in `fgMorphCast` (#52828)
SingleAccretion May 24, 2021
a45bdb3
Optimise GetCustomAttributes - Part 1 (#53152)
jkotas May 24, 2021
7789174
Fix formatting of CircularDependencyException error message (#53140)
marek-safar May 24, 2021
5b05e78
Reintroduce EnumerateRunes tests (#53114)
GrabYourPitchforks May 24, 2021
1b1cd20
Add missing space in xml description for IReadOnlySet<T>.Overlaps (#5…
SimonCropp May 24, 2021
e05bb40
Add [return: NotNullIfNotNull("str")] to SecurityElement.Escape (#52442)
Bond-009 May 24, 2021
84887bd
Update dependencies from https://github.com/dotnet/emsdk build 202105…
dotnet-maestro[bot] May 24, 2021
b0e4415
[main] Update dependencies from dotnet/arcade dotnet/icu dotnet/xharn…
dotnet-maestro[bot] May 24, 2021
32b2066
System.Collections.* missed Equals nullable annotations (#52164)
hrrrrustic May 24, 2021
3c9bf09
Reflection-annotate obscure API (#53081)
MichalStrehovsky May 24, 2021
323ab5b
DbgTransportSession: delete message copy when not queued (#50550)
tmds May 24, 2021
76f5ace
Disabled failing HTTP/3 tests. (#53092)
ManickaP May 24, 2021
aa0f412
Change enterprise test password (#53094)
May 24, 2021
599d0cf
Set NumProc on tizen (#53098)
gbalykov May 24, 2021
319c025
Implement Get*PublicKey methods on S.S.C.X509Certificates.PublicKey
vcsjones May 24, 2021
e3fc297
install development SSL certificate on Helix agent before xharness ru…
pavelsavara May 24, 2021
3b6baed
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-maestro[bot] May 24, 2021
263223a
Stringify RMWStatus for the dump (#53148)
SingleAccretion May 24, 2021
f270775
Fix: Avoid throwing if a symbolic link cycle to itself is detected wh…
carlossanlop May 24, 2021
d4b91ac
Add runtimeconfig.json support to AppleAppBuilder, reenable affected …
filipnavara May 24, 2021
bd074cd
Add additional area labels that have been added recently (#53183)
jeffschwMSFT May 24, 2021
7134b2d
Fix the token included by HttpClient.HandleFailure (#53133)
stephentoub May 24, 2021
254953a
Fix another bug in the backport action (#53187)
dougbu May 24, 2021
47498e2
Update testing docs with x86 instructions (#48715)
adamsitnik May 24, 2021
e323026
Fix EventSource default channel allocation (#48864)
sywhang May 24, 2021
a723e83
[mono] LLVM build fixes (#53139)
imhameed May 24, 2021
b171ea6
Reenable extract unicode System.IO.Compression.ZipFile tests on iOS (…
steveisok May 24, 2021
2548502
Use the new Microsoft.DotNet.PackageValidation on Microsoft.Extension…
Anipik May 24, 2021
82053b5
Delete redundant area-owners entries (#53188)
jkotas May 24, 2021
9853434
Add more natvis visualizations for base VM types. (#53052)
jkoritzinsky May 25, 2021
1eb0899
Hot Reload: test on WebAssembly (#53050)
lambdageek May 25, 2021
e3d66af
Fix handling of non-mergeable char classes in regex prefix analyzer (…
stephentoub May 25, 2021
e6d833c
System.ComponentModel.* missed Equals nullable annotations (#52163)
hrrrrustic May 25, 2021
129d20e
GT_COPY source should be marked as consume during resolution (#53041)
kunalspathak May 25, 2021
5cea8eb
Delete now unused *AsyncResult files from Sockets (#53192)
stephentoub May 25, 2021
d0d7705
Parse `DOTNET_PROCESSOR_COUNT` with a 10 radix not 16 (#53208)
AaronRobinsonMSFT May 25, 2021
fff0076
Emit JITStarting, MethodLoad, ModuleLoad and AssemblyLoad EventPipe e…
lateralusX May 25, 2021
9e81f6d
make networking easier to debug with console (#53178)
wfurt May 25, 2021
1388775
Fix missing nullable enable in Microsoft.Extensions.Logging.Abstracti…
stephentoub May 25, 2021
ae88cc0
Deterministic bundling issue 3601 (#52930)
JanKrivanek May 25, 2021
60c0b90
[Android] Revert arm and arm64 device PR runs (#53210)
steveisok May 25, 2021
d8efff2
Integrate selected changes from nativeaot branch (#53185)
jkotas May 25, 2021
1e5199b
Cleanup internal ComWrappers cache when object enters Finalization qu…
AaronRobinsonMSFT May 25, 2021
8162eb2
Remove unused code from old IJW path (#53190)
elinor-fung May 25, 2021
6218d6e
Closing opened handles to avoid resource leak. (#51950)
Sundow May 25, 2021
b0cb47a
[wasm][testing] create dev cert via powershell on helix (#53225)
pavelsavara May 25, 2021
faeba22
Reduce DefaultPooledConnectionIdleTimeout default (#52687)
halter73 May 25, 2021
3c0cf22
Addressed some PR comments
Daniel-Genkin May 25, 2021
9469eec
Addressed a few more PR comments
Daniel-Genkin May 25, 2021
9e8af01
changed post-js to pre-js
Daniel-Genkin May 26, 2021
c0ba6d4
Fixed samples
Daniel-Genkin May 26, 2021
9c93d7a
Fixed console sample
Daniel-Genkin May 27, 2021
2927c77
Merge remote-tracking branch 'upstream/main' into wasm-convert-config…
Daniel-Genkin Jun 1, 2021
93a7f31
Merge branch 'wasm-convert-config-to-json' of https://github.com/Dani…
Daniel-Genkin Jun 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
<PlatformManifestFileEntry Include="pinvoke.h" IsNative="true" />
<PlatformManifestFileEntry Include="emcc-default.rsp" IsNative="true" />
<PlatformManifestFileEntry Include="Emcc.props" IsNative="true" />
<PlatformManifestFileEntry Include="js_support.js" IsNative="false" />
<!-- ICU-specific files -->
<PlatformManifestFileEntry Include="libicudata.a" IsNative="true" />
<PlatformManifestFileEntry Include="libicui18n.a" IsNative="true" />
Expand Down
9 changes: 9 additions & 0 deletions src/libraries/sendtohelixhelp.proj
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@
<HelixPreCommand Include="set XHARNESS_DISABLE_COLORED_OUTPUT=true" />
<HelixPreCommand Include="set XHARNESS_LOG_WITH_TIMESTAMPS=true" />
</ItemGroup>
<ItemGroup Condition="'$(TargetOS)' == 'Browser'">
<!--
We are hosting the payloads for the WASM/browser on kestrel in the xharness process.
We also run some network tests to this server and so, we are running it on both HTTP and HTTPS.
For the HTTPS endpoint we need development SSL certificate.
Below is alternative to `dotnet dev-certs https` but we don't have full SDK installed on helix, so the tool is not available.
-->
<HelixPreCommand Include="powershell -command &quot;New-SelfSignedCertificate -FriendlyName &#39;ASP.NET Core HTTPS development certificate&#39; -DnsName @(&#39;localhost&#39;) -Subject &#39;CN = localhost&#39; -KeyAlgorithm RSA -KeyLength 2048 -HashAlgorithm sha256 -CertStoreLocation &#39;Cert:\CurrentUser\My&#39; -TextExtension @(&#39;2.5.29.37={text}1.3.6.1.5.5.7.3.1&#39;,&#39;1.3.6.1.4.1.311.84.1.1={hex}02&#39;,&#39;2.5.29.19={text}&#39;) -KeyUsage DigitalSignature,KeyEncipherment&quot;" />
</ItemGroup>

<PropertyGroup Condition="'$(TargetOS)' == 'Browser'">
<!--
Expand Down
1 change: 0 additions & 1 deletion src/mono/sample/mbr/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ <h3 id="header">Wasm Browser Sample</h3>
},
};
</script>
<script type="text/javascript" src="mono-config.js"></script>
<script type="text/javascript" src="runtime.js"></script>

<script defer src="dotnet.js"></script>
Expand Down
27 changes: 23 additions & 4 deletions src/mono/sample/mbr/browser/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,36 @@
// The .NET Foundation licenses this file to you under the MIT license.

var Module = {
config: null,

// Called once the config file is loaded. The contents of the config file
// are passed as a JS object within the config parameter
onConfigLoaded: function (config) {
if (!config || config.error){
console.log("An error occured while loading the config file");
return;
}

Module.config = config;
},

// Called when the runtime is initialized and wasm is ready
onRuntimeInitialized: function () {
config.loaded_cb = function () {
if (!Module.config || Module.config.error){
alert("An error occured while loading the config file");
return;
}

Module.config.loaded_cb = function () {
App.init ();
};
config.environment_variables = {
Module.config.environment_variables = {
"DOTNET_MODIFIABLE_ASSEMBLIES": "debug"
};
config.fetch_file_cb = function (asset) {
Module.config.fetch_file_cb = function (asset) {
return fetch (asset, { credentials: 'same-origin' });
}

MONO.mono_load_runtime_and_bcl_args (config);
MONO.mono_load_runtime_and_bcl_args (Module.config);
},
};
1 change: 0 additions & 1 deletion src/mono/sample/wasm/browser-bench/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ <h3 id="header">Wasm Browser Sample - Simple Benchmark</h3>
}
};
</script>
<script type="text/javascript" src="mono-config.js"></script>
<script type="text/javascript" src="runtime.js"></script>

<script defer src="dotnet.js"></script>
Expand Down
34 changes: 30 additions & 4 deletions src/mono/sample/wasm/browser-bench/runtime.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,49 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

var Module = {
config: null,

// Called once the config file is loaded. The contents of the config file
// are passed as a JS object within the config parameter
onConfigLoaded: function (config) {
if (!config || config.error){
console.log("An error occured while loading the config file");
return;
}

Module.config = config;
},

// Called when the runtime is initialized and wasm is ready
onRuntimeInitialized: function () {
config.loaded_cb = function () {
if (!Module.config || Module.config.error){
alert("An error occured while loading the config file");
return;
}

Module.config.loaded_cb = function () {
try {
App.init ();
} catch (error) {
test_exit(1);
throw (error);
}
};
config.fetch_file_cb = function (asset) {
Module.config.fetch_file_cb = function (asset) {
return fetch (asset, { credentials: 'same-origin' });
}

if (Module.config.enable_profiler)
{
Module.config.aot_profiler_options = {
write_at:"Sample.Test::StopProfile",
send_to: "System.Runtime.InteropServices.JavaScript.Runtime::DumpAotProfileData"
}
}

try
{
MONO.mono_load_runtime_and_bcl_args (config);
MONO.mono_load_runtime_and_bcl_args (Module.config);
} catch (error) {
test_exit(1);
throw(error);
Expand Down
59 changes: 0 additions & 59 deletions src/mono/sample/wasm/browser-profile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,67 +10,8 @@
<body>
<h3 id="header">Wasm Browser Sample</h3>
Result from Sample.Test.TestMeaning: <span id="out"></span>
<script type='text/javascript'>
var is_testing = false;
var onLoad = function() {
var url = new URL(decodeURI(window.location));
let args = url.searchParams.getAll('arg');
is_testing = args !== undefined && (args.find(arg => arg == '--testing') !== undefined);
};

var test_exit = function(exit_code)
{
if (!is_testing) {
console.log(`test_exit: ${exit_code}`);
return;
}

/* Set result in a tests_done element, to be read by xharness */
var tests_done_elem = document.createElement("label");
tests_done_elem.id = "tests_done";
tests_done_elem.innerHTML = exit_code.toString();
document.body.appendChild(tests_done_elem);

console.log(`WASM EXIT ${exit_code}`);
};

var App = {
init: function () {
var ret = BINDING.call_static_method("[Wasm.BrowserProfile.Sample] Sample.Test:TestMeaning", []);
document.getElementById("out").innerHTML = ret;
console.log ("ready");

if (is_testing)
{
console.debug(`ret: ${ret}`);
let exit_code = ret == 42 ? 0 : 1;
test_exit(exit_code);
}

if (config.enable_profiler) {
BINDING.call_static_method("[Wasm.BrowserProfile.Sample] Sample.Test:StopProfile", []);
saveProfile();
}
},
};

function saveProfile() {
var a = document.createElement('a');
var blob = new Blob([Module.aot_profile_data]);
a.href = URL.createObjectURL(blob);
a.download = "data.aotprofile";
// Append anchor to body.
document.body.appendChild(a);
a.click();

// Remove anchor from body
document.body.removeChild(a);
}

</script>
<script type="text/javascript" src="mono-config.js"></script>
<script type="text/javascript" src="runtime.js"></script>

<script defer src="dotnet.js"></script>

</body>
Expand Down
93 changes: 83 additions & 10 deletions src/mono/sample/wasm/browser-profile/runtime.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,106 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
var Module = {
var Module = {
is_testing: false,
config: null,

// Called once the config file is loaded. The contents of the config file
// are passed as a JS object within the config parameter
onConfigLoaded: function (config) {
if (!config || config.error){
console.log("An error occured while loading the config file");
return;
}

Module.config = config;
},

// Called when the runtime is initialized and wasm is ready
onRuntimeInitialized: function () {
config.loaded_cb = function () {
if (!Module.config || Module.config.error){
alert("An error occured while loading the config file");
return;
}

Module.config.loaded_cb = function () {
try {
App.init ();
Module.init();
} catch (error) {
test_exit(1);
Module.test_exit(1);
throw (error);
}
};
config.fetch_file_cb = function (asset) {
Module.config.fetch_file_cb = function (asset) {
return fetch (asset, { credentials: 'same-origin' });
}

if (config.enable_profiler)
if (Module.config.enable_profiler)
{
config.aot_profiler_options = {
Module.config.aot_profiler_options = {
write_at:"Sample.Test::StopProfile",
send_to: "System.Runtime.InteropServices.JavaScript.Runtime::DumpAotProfileData"
}
}

try
{
MONO.mono_load_runtime_and_bcl_args (config);
MONO.mono_load_runtime_and_bcl_args (Module.config);
} catch (error) {
test_exit(1);
Module.test_exit(1);
throw(error);
}
},

init: function () {
console.log("not ready yet")
var ret = BINDING.call_static_method("[Wasm.BrowserProfile.Sample] Sample.Test:TestMeaning", []);
document.getElementById("out").innerHTML = ret;
console.log ("ready");

if (Module.is_testing)
{
console.debug(`ret: ${ret}`);
let exit_code = ret == 42 ? 0 : 1;
Module.test_exit(exit_code);
}

if (Module.config.enable_profiler) {
BINDING.call_static_method("[Wasm.BrowserProfile.Sample] Sample.Test:StopProfile", []);
Module.saveProfile();
}
},

onLoad: function() {
var url = new URL(decodeURI(window.location));
let args = url.searchParams.getAll('arg');
Module.is_testing = args !== undefined && (args.find(arg => arg == '--testing') !== undefined);
},

test_exit: function(exit_code) {
if (!Module.is_testing) {
console.log(`test_exit: ${exit_code}`);
return;
}

/* Set result in a tests_done element, to be read by xharness */
var tests_done_elem = document.createElement("label");
tests_done_elem.id = "tests_done";
tests_done_elem.innerHTML = exit_code.toString();
document.body.appendChild(tests_done_elem);

console.log(`WASM EXIT ${exit_code}`);
},

saveProfile: function () {
var a = document.createElement('a');
var blob = new Blob([Module.aot_profile_data]);
a.href = URL.createObjectURL(blob);
a.download = "data.aotprofile";
// Append anchor to body.
document.body.appendChild(a);
a.click();

// Remove anchor from body
document.body.removeChild(a);
}
};
};
1 change: 0 additions & 1 deletion src/mono/sample/wasm/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ <h3 id="header">Wasm Browser Sample</h3>
},
};
</script>
<script type="text/javascript" src="mono-config.js"></script>
<script type="text/javascript" src="runtime.js"></script>

<script defer src="dotnet.js"></script>
Expand Down
26 changes: 23 additions & 3 deletions src/mono/sample/wasm/browser/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,42 @@
// The .NET Foundation licenses this file to you under the MIT license.

var Module = {

config: null,

// Called once the config file is loaded. The contents of the config file
// are passed as a JS object within the config parameter
onConfigLoaded: function (config) {
if (!config || config.error){
console.log("An error occured while loading the config file");
return;
}

Module.config = config;
},

// Called when the runtime is initialized and wasm is ready
onRuntimeInitialized: function () {
config.loaded_cb = function () {
if (!Module.config || Module.config.error){
alert("No config found");
return;
}

Module.config.loaded_cb = function () {
try {
App.init ();
} catch (error) {
test_exit(1);
throw (error);
}
};
config.fetch_file_cb = function (asset) {
Module.config.fetch_file_cb = function (asset) {
return fetch (asset, { credentials: 'same-origin' });
}

try
{
MONO.mono_load_runtime_and_bcl_args (config);
MONO.mono_load_runtime_and_bcl_args (Module.config);
} catch (error) {
test_exit(1);
throw(error);
Expand Down
6 changes: 3 additions & 3 deletions src/mono/wasm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ $(NATIVE_BIN_DIR)/include/wasm:
$(BUILDS_OBJ_DIR):
mkdir -p $$@

$(NATIVE_BIN_DIR)/dotnet.js: $(BUILDS_OBJ_DIR)/driver.o $(BUILDS_OBJ_DIR)/pinvoke.o $(BUILDS_OBJ_DIR)/corebindings.o runtime/library_mono.js runtime/binding_support.js runtime/dotnet_support.js $(SYSTEM_NATIVE_LIBDIR)/pal_random.js $(2) $(EMCC_DEFAULT_RSP) | $(NATIVE_BIN_DIR)
$(EMCC) @$(EMCC_DEFAULT_RSP) $(1) --js-library runtime/library_mono.js --js-library runtime/binding_support.js --js-library runtime/dotnet_support.js --js-library $(SYSTEM_NATIVE_LIBDIR)/pal_random.js $(BUILDS_OBJ_DIR)/driver.o $(BUILDS_OBJ_DIR)/pinvoke.o $(BUILDS_OBJ_DIR)/corebindings.o $(2) -o $(NATIVE_BIN_DIR)/dotnet.js $(3)
$(NATIVE_BIN_DIR)/dotnet.js: $(BUILDS_OBJ_DIR)/driver.o $(BUILDS_OBJ_DIR)/pinvoke.o $(BUILDS_OBJ_DIR)/corebindings.o runtime/library_mono.js runtime/binding_support.js runtime/dotnet_support.js runtime/js_support.js $(SYSTEM_NATIVE_LIBDIR)/pal_random.js $(2) $(EMCC_DEFAULT_RSP) | $(NATIVE_BIN_DIR)
$(EMCC) @$(EMCC_DEFAULT_RSP) $(1) --js-library runtime/library_mono.js --js-library runtime/binding_support.js --js-library runtime/dotnet_support.js --js-library $(SYSTEM_NATIVE_LIBDIR)/pal_random.js --pre-js runtime/js_support.js $(BUILDS_OBJ_DIR)/driver.o $(BUILDS_OBJ_DIR)/pinvoke.o $(BUILDS_OBJ_DIR)/corebindings.o $(2) -o $(NATIVE_BIN_DIR)/dotnet.js $(3)

$(BUILDS_OBJ_DIR)/pinvoke-table.h: $(PINVOKE_TABLE) | $(BUILDS_OBJ_DIR)
if cmp -s $(PINVOKE_TABLE) $$@ ; then : ; else cp $(PINVOKE_TABLE) $$@ ; fi
Expand Down Expand Up @@ -132,7 +132,7 @@ clean:
icu-files: $(wildcard $(ICU_LIBDIR)/*.dat) $(ICU_LIBDIR)/libicuuc.a $(ICU_LIBDIR)/libicui18n.a | $(NATIVE_BIN_DIR)
cp $^ $(NATIVE_BIN_DIR)

source-files: runtime/driver.c runtime/pinvoke.c runtime/corebindings.c runtime/binding_support.js runtime/dotnet_support.js runtime/library_mono.js $(SYSTEM_NATIVE_LIBDIR)/pal_random.js | $(NATIVE_BIN_DIR)/src
source-files: runtime/driver.c runtime/pinvoke.c runtime/corebindings.c runtime/binding_support.js runtime/dotnet_support.js runtime/library_mono.js runtime/js_support.js $(SYSTEM_NATIVE_LIBDIR)/pal_random.js | $(NATIVE_BIN_DIR)/src
cp $^ $(NATIVE_BIN_DIR)/src

header-files: runtime/pinvoke.h | $(NATIVE_BIN_DIR)/include/wasm
Expand Down
Loading