blob: e52d1f0e49ddf70eed91c043effe5e31a4f0f2d8 [file]
#include "linkstamp.h"
#include <stdio.h>
#include <string.h>
int main() {
const char* host = build_host;
fprintf(stdout, "BUILD_HOST: '%s'\n", host);
if (host == nullptr || host[0] == '\0') {
fprintf(stderr, "BUILD_HOST not set or empty\n");
return 1;
}
if (strcmp(host, "redacted") == 0) {
fprintf(stderr, "BUILD_HOST is \"redacted\", linkstamp not working\n");
return 1;
}
return 0;
}