Comments (6)
With those two versions, can you use the "echo command lines" option for the linker and cross-check the changes?
from vs-tool.
output vs_tool 0.9.2 :
1>------ Build started: Project: myproject_min, Configuration: Release Emscripten ------
1>Build started 01/05/2014 08:54:39.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\prj\dev\myproject\src\Emscripten\Release\myproject_min.js) does not match the Linker's OutputFile property value (D:\prj\dev\myproject\Emscripten\Release\myproject_min_release.js). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>Link:
1> C:\Program Files (x86)\Emscripten\emscripten\1.12.0\emcc.bat D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/app_strings.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/FormatString.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/InputFile.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/NumberParser.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/mfccompatstring.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/asprintf.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/awsprintf.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/interface.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/stdafx.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/stepmanager.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/xcallbacks.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/myproject.o D:/prj/dev/myproject/Emscripten/Release/xInterface.bc D:/prj/dev/myproject/Emscripten/Release/x.bc D:/prj/dev/myproject/Emscripten/Release/xIFS.bc D:/prj/dev/myproject/Emscripten/Release/xParser.bc D:/prj/dev/myproject/Emscripten/Obj/Release/UnicodeEscape/UnicodeEscape.bc -o D:/prj/dev/myproject/src/../Emscripten/Release/myproject_min_release.js -O2 -s EXPORTED_FUNCTIONS="['_Runapp','_Startapp', '_NextStep', '_Finishapp', '_SetMInstanceValueWithDName', '_SetMValueWithDName','_SendNMCommand','_Stopapp','_SetDebugMessages']" -s ALLOW_MEMORY_GROWTH=1 --js-library mslib.js
1>GCCLINK : warning root: Disabling asm.js validation for memory growth (memory can grow, but you lose some amount of speed)
1>GCCLINK : warning : Output contains some very large functions, consider using OUTLINING_LIMIT to break them up (see settings.js)
1> myproject.vcxproj -> D:\prj\dev\myproject\src\Emscripten\Release\myproject_min.js
1>CustomBuildStep:
1>Skipping target "CustomBuildStep" because it has no outputs.
1>CustomBuildStep:
1>Skipping target "CustomBuildStep" because it has no outputs.
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:35.27
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Emcc Linker property page General settings for vs_tool 0.9.2 are :
output vs_tool 0.9.3 :
1>------ Build started: Project: myproject_min, Configuration: Release Emscripten ------
1>Build started 01/05/2014 09:03:15.
1>Link:
1> C:\Program Files (x86)\Emscripten\emscripten\1.12.0\emcc.bat D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/app_strings.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/FormatString.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/InputFile.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/NumberParser.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/mfccompatstring.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/asprintf.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/awsprintf.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/interface.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/stdafx.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/stepmanager.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/xcallbacks.o D:/prj/dev/myproject/src/../Emscripten/Obj/Release/myproject_min/myproject.o D:/prj/dev/myproject/Emscripten/Release/xInterface.bc D:/prj/dev/myproject/Emscripten/Release/x.bc D:/prj/dev/myproject/Emscripten/Release/xIFS.bc D:/prj/dev/myproject/Emscripten/Release/xParser.bc D:/prj/dev/myproject/Emscripten/Obj/Release/UnicodeEscape/UnicodeEscape.bc -o D:/prj/dev/myproject/src/../Emscripten/Release/myproject_min_release.js -O2 --minify 0 -s EXPORTED_FUNCTIONS="['_Runapp','_Startapp', '_NextStep', '_Finishapp', '_SetMInstanceValueWithDName', '_SetMValueWithDName','_SendNMCommand','_Stopapp','_SetDebugMessages']" -s ALLOW_MEMORY_GROWTH=1 --js-library mslib.js --closure 0
1>GCCLINK : warning root: Disabling asm.js validation for memory growth (memory can grow, but you lose some amount of speed)
1>GCCLINK : warning : Output contains some very large functions, consider using OUTLINING_LIMIT to break them up (see settings.js)
1> myproject.vcxproj -> D:\prj\dev\myproject\src\..\Emscripten\Release\myproject_min_release.js
1>CustomBuildStep:
1>Skipping target "CustomBuildStep" because it has no outputs.
1>CustomBuildStep:
1>Skipping target "CustomBuildStep" because it has no outputs.
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:34.99
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
And here is a screen shot of the linker general settings page for the two tools (I didn't manually change any of the settings, just installed the new tool)
from vs-tool.
Same problem here. I've got exactly the same linker settings than virtualcodewarrior and my build size went from 6287 KB to 10058 KB.
from vs-tool.
I think it's the case that in the old compiler which 0.9.2 targeted, minification was off by default (--minify option), and now it's become on by default, which 0.9.3 is targeting. Try resetting the line "Force JS Code Minifier Run" to its default state, which should say "Yes" with a non-bolded text.
If that doesn't work, can you enable the "Echo Command Lines" option for both compile and link panels, and send me back the results?
from vs-tool.
Resetting the minifer option to the default value did the trick. The js file size is now back to what it used to be.
Thanks a lot!
from vs-tool.
Great!
from vs-tool.
Related Issues (20)
- Additional Library Directories on Linker property page is a trap HOT 11
- Wrong readme? HOT 2
- Emscripten location taken from environment var HOT 3
- Visual Studio 2010 Wrong setup - "no result showing up" HOT 5
- Targeting Linux HOT 1
- Can't get it working HOT 1
- Windows8/mingw-w64 : doesn't work HOT 3
- Dependency tracking in vs-tool 0.9.4 does not always work between lib and html projects.
- 1024-byte PATH len limit
- Visual Studio 2013 need vs-android sources
- Could not find <hash_map>
- cannot find emcc linker under Visual basic configuration properties HOT 1
- Incompatible with Visual Studio 2015
- Unable to start program when running hello_world.c
- Can't compile on VS 2017
- WASM support HOT 2
- Can I use this extension to integrate VS2017 build tools into VS2010 IDE? HOT 1
- Automatic -x flag generation when compiling precompiled headers
- Is this project still working? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vs-tool.