update build flags

This commit is contained in:
Vighnesh 2024-10-11 16:39:31 -07:00
parent 0276d18314
commit b5d3544d18
3 changed files with 3 additions and 8 deletions

View File

@ -13,6 +13,7 @@
namespace Luau namespace Luau
{ {
std::string DiffPathNode::toString() const std::string DiffPathNode::toString() const
{ {
switch (kind) switch (kind)

View File

@ -124,6 +124,8 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# Some gcc versions treat var in `if (type var = val)` as unused # Some gcc versions treat var in `if (type var = val)` as unused
# Some gcc versions treat variables used in constexpr if blocks as unused # Some gcc versions treat variables used in constexpr if blocks as unused
list(APPEND LUAU_OPTIONS -Wno-unused) list(APPEND LUAU_OPTIONS -Wno-unused)
# GCC has some bugs where we optional<string> is treated as uninitialized if it is on a structg
list(APPEND LUAU_OPTIONS -Wno-maybe-uninitialized)
endif() endif()
# Enabled in CI; we should be warning free on our main compiler versions but don't guarantee being warning free everywhere # Enabled in CI; we should be warning free on our main compiler versions but don't guarantee being warning free everywhere

View File

@ -463,10 +463,6 @@ TEST_CASE("proof_that_isBoolean_uses_all_of")
CHECK(!isBoolean(&union_)); CHECK(!isBoolean(&union_));
} }
#if defined(__linux__) && defined(__GNUC__)
#else
TEST_CASE("content_reassignment") TEST_CASE("content_reassignment")
{ {
Type myAny{AnyType{}, /*presistent*/ true}; Type myAny{AnyType{}, /*presistent*/ true};
@ -482,9 +478,5 @@ TEST_CASE("content_reassignment")
CHECK(futureAny->documentationSymbol == "@global/any"); CHECK(futureAny->documentationSymbol == "@global/any");
CHECK(futureAny->owningArena == &arena); CHECK(futureAny->owningArena == &arena);
} }
#endif
TEST_SUITE_END(); TEST_SUITE_END();