Skip to content

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

@Gargaj

Description

@Gargaj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions