mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix non-LLVM build.
This commit is contained in:
committed by
Christoffer Lerno
parent
a9d93c93d5
commit
3d512abaf7
@@ -474,6 +474,7 @@ if(C3_WITH_LLVM)
|
||||
else()
|
||||
target_sources(c3c PRIVATE src/utils/hostinfo.c)
|
||||
target_compile_definitions(c3c PUBLIC LLVM_AVAILABLE=0)
|
||||
target_link_libraries(c3c m)
|
||||
endif()
|
||||
|
||||
target_include_directories(c3c PRIVATE
|
||||
|
||||
@@ -68,7 +68,7 @@ static const char *llvm_arch_name(ArchType ty)
|
||||
UNREACHABLE
|
||||
}
|
||||
|
||||
void hostinfo_x86_features(X86Features *cpu_features)
|
||||
void hostinfo_x86_features(CpuFeatures *cpu_features)
|
||||
{
|
||||
#if defined(__x86_64__) || defined(_M_X64)
|
||||
// TODO
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#if !defined(HOSTINFO_H) && !LLVM_AVAILABLE
|
||||
#define HOSTINFO_H
|
||||
|
||||
void hostinfo_x86_features(X86Features *cpu_features);
|
||||
void hostinfo_x86_features(CpuFeatures *cpu_features);
|
||||
ArchType hostinfo_arch_type(void);
|
||||
EnvironmentType hostinfo_env_type(void);
|
||||
OsType hostinfo_os_type(void);
|
||||
|
||||
Reference in New Issue
Block a user