diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-26 16:25:44 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-26 16:25:44 +0800 |
commit | 613e227b5c970388001fa4e04cfa168f2b5758c5 (patch) | |
tree | 176252e9252c830de5c42eee8cbda6602eec34bc /src | |
parent | 65a3e69b26260427ee063e1d00eadf382487fc7d (diff) | |
download | mrust-613e227b5c970388001fa4e04cfa168f2b5758c5.tar.gz |
main - Set target_os=linux to make libc compile
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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
|