Compiler fixes for MSVC and GCC.

This commit is contained in:
Andy Friesen 2024-03-22 10:33:09 -07:00
parent 4931165635
commit d8f49d6ca2
2 changed files with 3 additions and 0 deletions

View file

@ -66,6 +66,7 @@ include(Sources.cmake)
target_include_directories(Luau.Common INTERFACE Common/include)
target_compile_features(Luau.CLI.lib PUBLIC cxx_std_17)
target_link_libraries(Luau.CLI.lib PRIVATE Luau.Common)
target_compile_features(Luau.Ast PUBLIC cxx_std_17)
@ -140,6 +141,7 @@ endif()
target_compile_options(Luau.Ast PRIVATE ${LUAU_OPTIONS})
target_compile_options(Luau.Analysis PRIVATE ${LUAU_OPTIONS})
target_compile_options(Luau.CLI.lib PRIVATE ${LUAU_OPTIONS})
target_compile_options(Luau.CodeGen PRIVATE ${LUAU_OPTIONS})
target_compile_options(Luau.VM PRIVATE ${LUAU_OPTIONS})
target_compile_options(isocline PRIVATE ${LUAU_OPTIONS} ${ISOCLINE_OPTIONS})

View file

@ -3,6 +3,7 @@
#include <algorithm>
#include <string_view>
#include <utility>
namespace Luau
{