mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 15:10:59 +03:00
![]() In -std=gnu* mode, `linux` is a macro that expands to 1. If LLVM_INTRINSIC_TD_PATH (bare string) contains `linux` (e.g. x86_64-linux-gnu), LLVM_INTRINSIC_TD_PATH in gen_gccbuiltins.cpp will be expanded and the whole string will get corrupted. Fix it by switching from bare strings to C++ raw string literals (preserving Windows backslashes). |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
FileCheck-3.9.cpp | ||
FileCheck-4.0.cpp | ||
FileCheck-5.0.cpp | ||
FileCheck-6.0.cpp | ||
FileCheck-7.0.cpp | ||
FileCheck-8.0.cpp | ||
FileCheck-9.0.cpp | ||
gen_gccbuiltins.cpp | ||
not.cpp | ||
README.md |
LDC – Utils
The /utils
directory contains utilities that are used in building LDC (gen_gccbuiltins.cpp
)
and testing LDC (not
and FileCheck
).
not
is copied from LLVM
FileCheck
is copied from LLVM, and versioned for each LLVM version that we support (for example, FileCheck-3.9.cpp does not compile with LLVM 3.5).
Older versions of FileCheck contain modifications such that they contain new features/bugfixes but still compile with older LLVM versions.
How not
and FileCheck
are used is decribed here: LDC Lit-based testsuite.