Code Monkey home page Code Monkey logo

Comments (3)

rizsotto avatar rizsotto commented on June 12, 2024

Hey @lesleyrs , thanks for the report.

In order to help, could you give more context? I am not familiar with the emmake and emcc tools. Could you send a link to a getting started page? Or just highlight how they works? And what you want to achieve? Maybe give an example of a Makefile and what output you would like to see?

from bear.

lesleyrs avatar lesleyrs commented on June 12, 2024

Sure, I did some more digging and actually found a hack that works! But I still don't fully understand the problem. I have a conditional in my makefile that checks which compiler is being used and ignores the path besides the name because emmake (which is a make wrapper that sets up the variables) sets the full path to emcc. If I set CC=emcc instead of using bear with the "full path/emcc" it works!

I made a simplified example of my makefile that has the same behavior: https://github.com/lesleyrs/emscripten-issue

Compiling with bear -- emmake make emmake make db CC=emcc make db CC=emcc all work, but emmake make db doesn't which was my intention. You can tell it doesn't work because it has 2 argument arrays, one for emcc and one for clang. The emcc one stops clangd lsp from activating for emscripten related stuff, in a succesful db it only shows clang.

You can uncomment the line in makefile to make emmake make db work as intended, but of course that stops it from using the full path. I don't know why changing the path directly to emcc makes it work though...

emscripten + raylib resources here for building to wasm:
https://emscripten.org/docs/getting_started/downloads.html
https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5)

from bear.

lesleyrs avatar lesleyrs commented on June 12, 2024

Closing this as it's not really an issue anymore with the workaround.

from bear.

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.