Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS2019 doesn't rebuild when .asm file is changed #13

Open
Gargaj opened this issue Jun 2, 2020 · 3 comments
Open

VS2019 doesn't rebuild when .asm file is changed #13

Gargaj opened this issue Jun 2, 2020 · 3 comments

Comments

@Gargaj
Copy link

Gargaj commented Jun 2, 2020

I have a very simple project:

main.cpp

#include <stdio.h>

extern "C" char theText[];

void main()
{
  printf( "%s", theText );
}

data.asm

section .data

global _theText
_theText db "hello!",0

With VS2019, on the first build, or a clean build, everything builds fine and I can run the program and print the string.

However, if I change the string in the .asm and press Build again, I get this: (msbuild set to Diagnostic level)

1>------ Up-To-Date check: Project: NasmPropsTest, Configuration: Debug Win32 ------
1>All outputs are up-to-date.
1>Time Elapsed 9 ms
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

Changing the .cpp file and pressing Build correctly rebuilds the .asm file as well.

@Sibras
Copy link
Member

Sibras commented Jun 2, 2020

This is a limitation of the current implementation (I havnt worked out how to get VS to handle it properly). If it doesnt auto rebuild a asm you can right-click the file in solution explorer and select Compile to force it to recompile.

@Gargaj
Copy link
Author

Gargaj commented Jun 8, 2020

Shouldn't this be covered by the incremental build / tlog system in VS?

@Sibras
Copy link
Member

Sibras commented Jun 8, 2020

Not automatically as for languages that VS doesn't understand (like asm) the build customization needs to be able to instruct VS what files to monitor that actually effect the output. So VS doesnt even know if a *.asm file is even a source file or some sort of configuration. Currently the build customization doesnt do a good enough job of instructing VS what files to monitor and under what circumstances a rebuild is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants