diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-02-23 22:07:54 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-02-23 22:07:54 +0200 |
commit | 836c978c94e4a0b94c269cbd10a8eeea0437ff66 (patch) | |
tree | 333ad75201c9b275e8d2ba9233788db6c0bf5d96 /backends.py | |
parent | 7bc3b78c68642abd282c9ca9b26bde5e6dd0eaab (diff) | |
download | meson-836c978c94e4a0b94c269cbd10a8eeea0437ff66.zip meson-836c978c94e4a0b94c269cbd10a8eeea0437ff66.tar.gz meson-836c978c94e4a0b94c269cbd10a8eeea0437ff66.tar.bz2 |
C++ compiler can compile .h file, too.
Diffstat (limited to 'backends.py')
-rw-r--r-- | backends.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/backends.py b/backends.py index e4aaced..4af9be2 100644 --- a/backends.py +++ b/backends.py @@ -938,7 +938,6 @@ class NinjaBackend(Backend): def generate_gcc_pch_command(self, target, compiler, pch): commands = [] commands += self.generate_basic_compiler_flags(target, compiler) - dst = os.path.join(self.get_target_private_dir(target), os.path.split(pch)[-1] + '.' + compiler.get_pch_suffix()) dep = dst + '.' + compiler.get_depfile_suffix() @@ -953,7 +952,7 @@ class NinjaBackend(Backend): if len(pch) == 0: continue if '/' not in pch[0] or '/' not in pch[-1]: - raise build.InvalidArguments('Precompiled header of "%s" must not be in the same direcotory as source, please put it in a subdirectory.' % target.get_basename()) + raise build.InvalidArguments('Precompiled header of "%s" must not be in the same directory as source, please put it in a subdirectory.' % target.get_basename()) compiler = self.get_compiler_for_lang(lang) if compiler.id == 'msvc': src = os.path.join(self.build_to_src, target.get_source_subdir(), pch[-1]) |