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

Support passing arguments to the assembler #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eigenform
Copy link
Contributor

@eigenform eigenform commented Jul 13, 2019

Support passing arguments to powerpc-{gekko,eabi}-as with the --asflags command-line option.
Currently have it so that instances of --asflags with gecko build will override settings in a configuration file.

Mainly looking to add this in order to have a cleaner way of supporting .ifdef directives in pieces of code that one may [or may not] want to assemble - although, there are potentially a bunch of other cases where you might want to control what the assembler is doing.

For example:

# my.asm

foo:
  ...

.ifdef DEBUG
  ...
.endif

bar:
  ...
# debug_my_patch.json
{
  "settings": {
    "asFlags": "--defsym=DEBUG=1"
  },
  "outputFiles": [ "file": "debug_my_patch.ini", ... ],
  "codes": [ ... ], 
}
# my_patch.json
{
  "settings": { },
  "outputFiles": [ "file": "my_patch.ini", ... ],
  "codes": [ ... ], 
}

I also let it print assembler messages by default - probably useful in cases where there are non-fatal warnings that aren't passed to stderr (we only hard fail to build when stderr output is non-null).

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

Successfully merging this pull request may close these issues.

1 participant