Skip to content

Commit

Permalink
Update Soup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Dec 9, 2023
1 parent d4e8d4d commit baa7eb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Sun/vendor/Soup/soup/Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ namespace soup
args.emplace_back("-lgdi32");
}
#else
#if !SOUP_MACOS
args.emplace_back("-fuse-ld=lld");
#endif
args.emplace_back("-lstdc++");
if (!isEmscripten())
{
#if !SOUP_MACOS
args.emplace_back("-lstdc++fs");
#endif
args.emplace_back("-lresolv");
}
args.emplace_back("-lm");
Expand Down
4 changes: 2 additions & 2 deletions Sun/vendor/Soup/soup/base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@

// === Determine CPU register size

#if defined(__x86_64__) || defined(__ppc64__) || defined(_M_X64) || defined(__aarch64__)
#if defined(__x86_64__) || defined(_M_X64) || defined(__ppc64__) || defined(__aarch64__)
#define SOUP_BITS 64
#else
#define SOUP_BITS 32
#endif

// === Determine CPU architecture

#if defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__i386) || defined(__i486__) || defined(__i486) || defined(i386) || defined(__ia64__) || defined(__x86_64__)
#if defined(__x86_64__) || defined(_M_X64) || defined(i386) || defined(__i386__) || defined(__i386) || defined(_M_IX86)
#define SOUP_X86 true
#else
#define SOUP_X86 false
Expand Down

0 comments on commit baa7eb9

Please sign in to comment.