Skip to content
Snippets Groups Projects
  1. Apr 30, 2015
  2. Apr 29, 2015
  3. Apr 28, 2015
  4. Apr 27, 2015
  5. Apr 26, 2015
  6. Apr 25, 2015
  7. Apr 24, 2015
  8. Apr 23, 2015
    • Nils Gladitz's avatar
    • Brad King's avatar
      Tests: Fix ExportImport on AIX with GCC · 4fc47424
      Brad King authored
      The iface_test_bld gets the excludedFromAll include directory with
      "-isystem" because it is added indirectly through an imported target.
      On AIX with GCC the -isystem flag causes sources to be preprocessed as:
      
        # 3 "/.../excludedFromAll.h" 2 3 4
      
      The flags after the file name are documented here:
      
        https://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html
      
      and the "4" flag says that following content is extern "C".  This
      causes the excludedFromAll function to be declared as a C symbol
      and not mangled for C++, which fails to link later because the
      symbol is really provided as C++.
      
      Work around this by setting the NO_SYSTEM_FROM_IMPORTED target property
      on iface_test_bld.  Somehow iface_test_exp does not end up with -isystem
      so we do not need this workaround for that target.
      4fc47424
Loading