diff options
Diffstat (limited to 'libicuio/libicuio/buildfile')
-rw-r--r-- | libicuio/libicuio/buildfile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libicuio/libicuio/buildfile b/libicuio/libicuio/buildfile index 1334d2f..a400b40 100644 --- a/libicuio/libicuio/buildfile +++ b/libicuio/libicuio/buildfile @@ -4,7 +4,9 @@ import intf_libs = libicui18n%lib{icui18n} import intf_libs += libicuuc%lib{icuuc} -lib{icuio}: {hxx cxx}{**} $intf_libs +patched = ufile + +lib{icuio}: io/hxx{**} io/cxx{** -{$patched}} cxx{$patched} $intf_libs tclass = $cxx.target.class tsys = $cxx.target.system @@ -44,11 +46,21 @@ cxx.poptions =+ "-I$src_base/io" obja{*}: cxx.poptions += -DU_STATIC_IMPLEMENTATION -switch $cxx.class, $tsys +switch $cxx.class { case 'gcc' + { cxx.coptions += -fvisibility=hidden + # Disable warnings that pop up with -Wall -Wextra. Upstream doesn't seem + # to care about these and it is not easy to disable specific warnings in a + # way that works across compilers/version (some -Wno-* options are only + # recognized in newer versions). There are still some warnings left that + # appear for certain platforms/compilers. We pass them through but disable + # treating them as errors. + # + cxx.coptions += -Wno-all -Wno-extra -Wno-error + } case 'msvc' cxx.coptions += /utf-8 /Zc:wchar_t /GF /Gy \ /wd4996 # Disable warnings that pop up with /W3. |