From 613e227b5c970388001fa4e04cfa168f2b5758c5 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 26 Sep 2016 16:25:44 +0800 Subject: main - Set target_os=linux to make libc compile --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 3e9e3f03..f4b6262d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -145,10 +145,10 @@ int main(int argc, char *argv[]) // TODO: Target spec Cfg_SetFlag("unix"); Cfg_SetFlag("linux"); + Cfg_SetValue("target_os", "linux"); Cfg_SetValue("target_pointer_width", "64"); Cfg_SetValue("target_endian", "little"); Cfg_SetValue("target_arch", "x86-noasm"); // TODO: asm! macro - Cfg_SetValue("target_os", "foobar"); Cfg_SetValueCb("target_has_atomic", [](const ::std::string& s) { if(s == "8") return true; // Has an atomic byte if(s == "ptr") return true; // Has an atomic pointer-sized value -- cgit v1.2.3