Giter Site home page Giter Site logo

Comments (7)

trzecieu avatar trzecieu commented on May 27, 2024

I think so! Good idea!

from emscripten-docker.

trzecieu avatar trzecieu commented on May 27, 2024

Hi, I see that there is an attempt in your case to create a new cache entry under wasm-lto but I have a difficult to reproduce it. Simple command doesn't work.

em++ test.cpp -flto -o test.js -s WASM=1

Is it possible for you to share compilation flags?

from emscripten-docker.

trzecieu avatar trzecieu commented on May 27, 2024

I've addressed blindly this issue in the commit ec1eaff, I will update images soon with that change.

from emscripten-docker.

RReverser avatar RReverser commented on May 27, 2024

em++ test.cpp -flto -o test.js -s WASM=1

Hmm, I'll need some time to get around but could you try adding optimisation and/or debug flags?

from emscripten-docker.

trzecieu avatar trzecieu commented on May 27, 2024

I've tested a various of flags under 1.39.5 - nothing has worked unfortunately.
Some images have been already updated with precompiled LTO, i.e:

  • docker pull trzeci/emscripten-fastcomp:1.39.7
  • docker pull trzeci/emscripten-upstream:1.39.7
    Also would be useful if you tell which version of emscripten do you use, as I've found that this emscripten-core/emscripten#10603 might be related

from emscripten-docker.

RReverser avatar RReverser commented on May 27, 2024

Ah, it probably depends on contents of your test.cpp and which libraries end up being linked. If it's not using the standard library, it might be skipping these compilations altogether.

as I've found that this emscripten-core/emscripten#10603 might be related

Unlikely - that issue is just about size inefficiency, which is not very related.

from emscripten-docker.

trzecieu avatar trzecieu commented on May 27, 2024

So I've added a bunch of most common libs to cache with lto, please check if something missing I can add explicitly to the list : )

Thanks!

from emscripten-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.