Fix external parameters

This commit is contained in:
Philipp Zagar 2024-02-28 12:44:01 -08:00
parent 8776d1c051
commit b52285d056
No known key found for this signature in database
GPG key ID: 263361B2C2850C93

View file

@ -32,10 +32,22 @@
} while(0)
// build info
// If macro is not defined (passed via Xcode), set the corresponding variable as defined via external variable.
#ifndef LLAMA_BUILD_NUMBER
extern int LLAMA_BUILD_NUMBER;
#endif
#ifndef LLAMA_COMMIT
extern char const *LLAMA_COMMIT;
#endif
#ifndef LLAMA_COMPILER
extern char const *LLAMA_COMPILER;
#endif
#ifndef LLAMA_BUILD_TARGET
extern char const *LLAMA_BUILD_TARGET;
#endif
//
// CLI argument parsing