aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-11-28 10:55:12 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-11-28 10:55:12 +0300
commitd864e71f0f79ba31bb330b2493f7aaf80ae4d0f5 (patch)
treea035bb831b5d4e099b17f2a84ea56ad5c6a4e147
parent29135ad7c28ae928ee5abe17dd4ec18ede855f9a (diff)
Use switch in buildfile
-rw-r--r--odb/buildfile21
1 files changed, 12 insertions, 9 deletions
diff --git a/odb/buildfile b/odb/buildfile
index 46c5ab6..3895019 100644
--- a/odb/buildfile
+++ b/odb/buildfile
@@ -68,15 +68,18 @@ exe{odb}: plugin{odb}: include = adhoc
plugin{odb}: libus{odb}
-# On Windows we have to link the import stub.
-#
-if ($cxx.target.system == 'mingw32')
- plugin{odb}: cxx.libs += $plugin_dir/cc1plus.exe.a
-#
-# On Mac OS we have to allow undefined symbols.
-#
-elif ($cxx.target.system == 'darwin')
- plugin{odb}: cxx.loptions += -undefined dynamic_lookup
+switch $cxx.target.system
+{
+ # On Windows we have to link the import stub.
+ #
+ case 'mingw32'
+ plugin{odb}: cxx.libs += $plugin_dir/cc1plus.exe.a
+
+ # On Mac OS we have to allow undefined symbols.
+ #
+ case 'darwin'
+ plugin{odb}: cxx.loptions += -undefined dynamic_lookup
+}
libus{odb}: {hxx ixx txx cxx}{** -odb -options} {hxx ixx cxx}{options} $libs