Advertisement
Korsar13

Untitled

Dec 24th, 2021
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. qbs build from scratch works as intended:
  2.  
  3. N:\.meta\qbs\.tst3>qbs --force-probe-execution profile:MSVC2019-x64
  4. Build graph does not yet exist for configuration 'default'. Starting from scratch.
  5. Resolving project for configuration default
  6. svn revision: 96
  7. N:/.meta/qbs/.tst3/default/AppVer.c4cd9211/MyAppVer.h not found
  8. Setting up build graph for configuration default
  9. Building for configuration default
  10. Update N:/.meta/qbs/.tst3/default/AppVer.c4cd9211/MyAppVer.h 0 -> 96 [AppVer]
  11. compiling m.cpp [a]
  12. linking a.exe [a]
  13. Build done for configuration default.
  14.  
  15. but re-run brings recompile:
  16.  
  17. N:\.meta\qbs\.tst3>qbs --force-probe-execution profile:MSVC2019-x64
  18. Restoring build graph from disk
  19. Resolving project for configuration default
  20. svn revision: 96
  21. current revision: 96
  22. Building for configuration default
  23. Keep existing N:/.meta/qbs/.tst3/default/AppVer.c4cd9211/MyAppVer.h rev. 96 [AppVer]
  24. compiling m.cpp [a]
  25. linking a.exe [a]
  26. Build done for configuration default.
  27.  
  28. if Rule property alwaysRun changed from 'true' to 'need_update' (commented line), qbs can build _AFTER_ change:
  29.  
  30. N:\.meta\qbs\.tst3>qbs --force-probe-execution profile:MSVC2019-x64
  31. Restoring build graph from disk
  32. Resolving project for configuration default
  33. svn revision: 97
  34. current revision: 96
  35. Building for configuration default
  36. Update N:/.meta/qbs/.tst3/default/AppVer.c4cd9211/MyAppVer.h 96 -> 97 [AppVer]
  37. compiling m.cpp [a]
  38. linking a.exe [a]
  39. Build done for configuration default.
  40.  
  41. but fails to build if revision not changed:
  42.  
  43. N:\.meta\qbs\.tst3>qbs --force-probe-execution profile:MSVC2019-x64
  44. Restoring build graph from disk
  45. Resolving project for configuration default
  46. svn revision: 97
  47. current revision: 97
  48. Building for configuration default
  49. Keep existing N:/.meta/qbs/.tst3/default/AppVer.c4cd9211/MyAppVer.h rev. 97 [AppVer]
  50. compiling m.cpp [a]
  51. ERROR: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe" /nologo /c /EHsc /Od /Zi /MDd /IN:\.meta\qbs\.tst3\default\AppVer.c4cd9211 /experimental:external /external:W0 /DUNICODE /D_UNICODE /DWIN32 /Fda.cl.pdb /Zc:__cplusplus /FoN:\.meta\qbs\.tst3\default\a.86f7e437\3a52ce780950d4d9\m.cpp.obj N:\.meta\qbs\.tst3\m.cpp /TP /FS
  52. N:\.meta\qbs\.tst3\m.cpp(2): fatal error C1083: Cannot open include file: 'MyAppVer.h': No such file or directory
  53. ERROR: Process failed with exit code 2.
  54. The following products could not be built for configuration default:
  55. a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement