diff options
author | Zsolt Parragi <zsolt.parragi@cancellar.hu> | 2019-02-21 19:00:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-27 13:39:02 (GMT) |
commit | 1a281a1acdcce3d6ce5a2a37fc4e0f6ab77ff0c3 (patch) | |
tree | a8d5098b79884386177fe13750afa76dedaab571 /Source/cmcldeps.cxx | |
parent | fa339ced67d14bb608b2a71c37c3b99d90941d47 (diff) | |
download | CMake-1a281a1acdcce3d6ce5a2a37fc4e0f6ab77ff0c3.zip CMake-1a281a1acdcce3d6ce5a2a37fc4e0f6ab77ff0c3.tar.gz CMake-1a281a1acdcce3d6ce5a2a37fc4e0f6ab77ff0c3.tar.bz2 |
RC: Pass output file in a way that llvm-rc 7 and below understand
Prior to LLVM 8.0, `llvm-rc` does not recognize `/fo` without a space
after it. Add the space unconditionally because MS `rc` accepts it too.
Issue: #18957
Diffstat (limited to 'Source/cmcldeps.cxx')
-rw-r--r-- | Source/cmcldeps.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx index 1a10666..19d0d38 100644 --- a/Source/cmcldeps.cxx +++ b/Source/cmcldeps.cxx @@ -276,7 +276,7 @@ int main() std::string clrest = rest; // rc: /fo x.dir\x.rc.res -> cl: /out:x.dir\x.rc.res.dep.obj - clrest = replace(clrest, "/fo", "/out:"); + clrest = replace(clrest, "/fo ", "/out:"); clrest = replace(clrest, objfile, objfile + ".dep.obj "); cl = "\"" + cl + "\" /P /DRC_INVOKED /TC "; |