Git Product home page Git Product logo

Comments (5)

zeux avatar zeux commented on August 15, 2024 1

It's interesting that this isn't silenced by this:

    if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
        list(APPEND LUAU_OPTIONS -Wno-unused) # GCC considers variables declared/checked in if() as unused
    endif()

Maybe our check for the compiler here has to be tweaked to cover MinGW?
Regardless it's something we should fix :)

from luau.

zeux avatar zeux commented on August 15, 2024 1

The odd part is that even without -Wno-unused, clang-10 doesn't warn on this. This might be new in clang-11. Either way, we'll fix the error - we actually intended to keep clang not using the -Wno-unused warning, but the Makefile used for the CI build right now passes it anyway, which we'll fix as well.

from luau.

zeux avatar zeux commented on August 15, 2024

Oh I just realized this is Emscripten. CMAKE_CXX_COMPILER_ID is probably "Emscripten" or thereabouts. Maybe we should use CMAKE_CXX_COMPILER_IS_GNUCXX instead.

from luau.

MathematicalDessert avatar MathematicalDessert commented on August 15, 2024

Oh sorry, I should've mentioned!

from luau.

MathematicalDessert avatar MathematicalDessert commented on August 15, 2024

@zeux CMAKE_CXX_COMPILER_ID indicates that the compiler is actually Clang. A temporary fix would be checking if CMAKE_CXX_COMPILER_ID is equal to "GNU" or "Clang". I have no idea what other compilers would have a similar issue to this (although this fix is a very slippery slope to take).

https://cmake.org/cmake/help/latest/variable/CMAKE_COMPILER_IS_GNUCXX.html
https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html

from luau.

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.