summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4338487c..fd6cd692 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -77,6 +77,11 @@ int main(int argc, char *argv[])
// Set up cfg values
Cfg_SetFlag("linux");
Cfg_SetValue("target_pointer_width", "64");
+ 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
+ return false;
+ });
try