<commit_before>#pragma once
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "d3dcompiler.lib")
#pragma comment(lib, "dxguid.lib")

#include "taichi/common/core.h"

#ifdef TI_WITH_DX11
#include <d3d11.h>
#endif

namespace taichi {
namespace lang {
namespace directx11 {

bool is_dx_api_available();

}
}  // namespace lang
}  // namespace taichi<commit_msg>[build] Guard dx lib search with TI_WITH_DX11 (#4505)<commit_after>#pragma once
#include "taichi/common/core.h"

#ifdef TI_WITH_DX11
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "d3dcompiler.lib")
#pragma comment(lib, "dxguid.lib")
#include <d3d11.h>
#endif

namespace taichi {
namespace lang {
namespace directx11 {

bool is_dx_api_available();

}
}  // namespace lang
}  // namespace taichi
{'fraction_non_alphanumeric': 0.13725490196078433, 'fraction_numerical': 0.036601307189542485, 'mean_word_length': 5.547008547008547, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5080912', 'n_tokens_mistral': 305, 'n_tokens_neox': 284, 'n_words': 66}