[rtems-libbsd commit] waf: Do not add '.' to standard include path

Sebastian Huber sebh at rtems.org
Wed Sep 30 13:56:49 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    af3944c7549f64e59abdbabf58f0ae49323a2ea9
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=af3944c7549f64e59abdbabf58f0ae49323a2ea9

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Sep 29 10:16:10 2015 +0200

waf: Do not add '.' to standard include path

---

 waf_generator.py | 2 +-
 wscript          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/waf_generator.py b/waf_generator.py
index 7ae5a2a..e561df1 100755
--- a/waf_generator.py
+++ b/waf_generator.py
@@ -321,7 +321,7 @@ class ModuleManager(builder.ModuleManager):
         self.add('    cxxflags = %r + common_flags' % (builder.cxxflags()))
         self.add('')
         self.add('    # Include paths')
-        self.add('    includes = ["."]')
+        self.add('    includes = []')
         self.add('    for i in %r:' % (builder.cpu_includes()))
         self.add('        includes += ["%s" % (i[2:].replace("@CPU@", bld.get_env()["RTEMS_ARCH"]))]')
         for i in builder.includes():
diff --git a/wscript b/wscript
index 88334e4..9246025 100644
--- a/wscript
+++ b/wscript
@@ -72,7 +72,7 @@ def build(bld):
     cxxflags = ['-std=gnu++11'] + common_flags
 
     # Include paths
-    includes = ["."]
+    includes = []
     for i in ['-Irtemsbsd/@CPU@/include', '-Ifreebsd/sys/@CPU@/include']:
         includes += ["%s" % (i[2:].replace("@CPU@", bld.get_env()["RTEMS_ARCH"]))]
     includes += ["rtemsbsd/include"]



More information about the vc mailing list