mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Set minimum LLVM version for compilation.
This commit is contained in:
@@ -130,6 +130,10 @@ message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
|
|||||||
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
|
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
|
||||||
message(STATUS "Libraries located in: ${LLVM_LIBRARY_DIRS}")
|
message(STATUS "Libraries located in: ${LLVM_LIBRARY_DIRS}")
|
||||||
|
|
||||||
|
if (NOT LLVM_PACKAGE_VERSION VERSION_GREATER_EQUAL 15.0)
|
||||||
|
message(FATAL_ERROR "LLVM version 15.0 or later is required.")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(LLVM_ENABLE_RTTI)
|
if(LLVM_ENABLE_RTTI)
|
||||||
message(STATUS "LLVM was built with RTTI")
|
message(STATUS "LLVM was built with RTTI")
|
||||||
else()
|
else()
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const char *trust_level[3] = {
|
|||||||
[TRUST_FULL] = "full",
|
[TRUST_FULL] = "full",
|
||||||
};
|
};
|
||||||
|
|
||||||
#define EOUTPUT(string, ...) fprintf(stderr, string "\n", ##__VA_ARGS__)
|
#define EOUTPUT(string, ...) fprintf(stderr, string "\n", ##__VA_ARGS__) // NOLINT
|
||||||
#define PRINTF(string, ...) fprintf(stdout, string "\n", ##__VA_ARGS__) // NOLINT
|
#define PRINTF(string, ...) fprintf(stdout, string "\n", ##__VA_ARGS__) // NOLINT
|
||||||
#define FAIL_WITH_ERR(string, ...) do { fprintf(stderr, "Error: " string "\n\n", ##__VA_ARGS__); usage(); exit_compiler(EXIT_FAILURE); } while (0) /* NOLINT */
|
#define FAIL_WITH_ERR(string, ...) do { fprintf(stderr, "Error: " string "\n\n", ##__VA_ARGS__); usage(); exit_compiler(EXIT_FAILURE); } while (0) /* NOLINT */
|
||||||
|
|
||||||
@@ -237,7 +237,7 @@ void append_file(BuildOptions *build_options)
|
|||||||
{
|
{
|
||||||
if (vec_size(build_options->files) == MAX_FILES)
|
if (vec_size(build_options->files) == MAX_FILES)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Max %d files may be specified\n", MAX_FILES);
|
EOUTPUT("Max %d files may be specified.", MAX_FILES);
|
||||||
exit_compiler(EXIT_FAILURE);
|
exit_compiler(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
vec_add(build_options->files, current_arg);
|
vec_add(build_options->files, current_arg);
|
||||||
|
|||||||
Reference in New Issue
Block a user