Skip to content

Commit

Permalink
igl | shell | Mac compilation fix (#177)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #177

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

Build failure: https://github.com/facebook/igl/actions/runs/10783565496/job/29905723169

Reviewed By: rokuz

Differential Revision: D62426175

Pulled By: corporateshark

fbshipit-source-id: 54a2f3fb51c65b528389da32c7169ab38fc5b737
  • Loading branch information
corporateshark authored and facebook-github-bot committed Sep 10, 2024
1 parent ed9d50f commit 54e576d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions shell/renderSessions/TinyMeshBindGroupSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ namespace fs = std::filesystem;
#include <stb/stb_image.h>
#define TINY_TEST_USE_DEPTH_BUFFER 1

// libc++'s implementation of std::format has a large binary size impact
// (https://github.com/llvm/llvm-project/issues/64180), so avoid it on Android.
#if !defined(IGL_FORMAT)
#if defined(__cpp_lib_format) && !defined(__ANDROID__)
#include <format>
#define IGL_FORMAT std::format
#else
#include <fmt/core.h>
#define IGL_FORMAT fmt::format
#endif // __cpp_lib_format
#endif // !defined(IGL_FORMAT)

namespace {

const uint32_t kDynamicBufferMask = 0b10;
Expand Down

0 comments on commit 54e576d

Please sign in to comment.