Skip to content

Commit

Permalink
#221 Add force_checkout and force_compile arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
singhd789 committed Oct 31, 2024
1 parent 751d3a2 commit 6a13ab5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions fre/make/createCheckout.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ def checkout_create(yamlfile,platform,target,no_parallel_checkout,jobs,execute,v
print("\nCheckout script PREVIOUSLY created in "+ tmpDir + "/checkout.sh" + "\n")

@click.command()
def _checkout_create(yamlfile,platform,target,no_parallel_checkout,jobs,execute,verbose):
def _checkout_create(yamlfile,platform,target,no_parallel_checkout,jobs,execute,verbose,force_checkout):
'''
Decorator for calling checkout_create - allows the decorated version
of the function to be separate from the undecorated version
'''
return checkout_create(yamlfile,platform,target,no_parallel_checkout,jobs,execute,verbose)
return checkout_create(yamlfile,platform,target,no_parallel_checkout,jobs,execute,verbose,force_checkout)

if __name__ == "__main__":
checkout_create()
4 changes: 2 additions & 2 deletions fre/make/createCompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .gfdlfremake import varsfre, yamlfre, targetfre, buildBaremetal
import fre.yamltools.combine_yamls as cy

def compile_create(yamlfile,platform,target,jobs,parallel,execute,verbose):
def compile_create(yamlfile,platform,target,jobs,parallel,execute,verbose,force_compile):
# Define variables
yml = yamlfile
name = yamlfile.split(".")[0]
Expand Down Expand Up @@ -109,7 +109,7 @@ def compile_create(yamlfile,platform,target,jobs,parallel,execute,verbose):
sys.exit()

@click.command()
def _compile_create(yamlfile,platform,target,jobs,parallel,execute,verbose):
def _compile_create(yamlfile,platform,target,jobs,parallel,execute,verbose,force_compile):
'''
Decorator for calling compile_create - allows the decorated version
of the function to be separate from the undecorated version
Expand Down
4 changes: 2 additions & 2 deletions fre/make/runFremake.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ def fremake_run(yamlfile,platform,target,parallel,jobs,no_parallel_checkout,verb
pool.map(buildBaremetal.fremake_parallel,fremakeBuildList)

@click.command()
def _fremake_run(yamlfile,platform,target,parallel,jobs,no_parallel_checkout,verbose):
def _fremake_run(yamlfile,platform,target,parallel,jobs,no_parallel_checkout,verbose,force_checkout,force_compile):
'''
Decorator for calling fremake_run - allows the decorated version
of the function to be separate from the undecorated version
'''
return fremake_run(yamlfile,platform,target,parallel,jobs,no_parallel_checkout,verbose)
return fremake_run(yamlfile,platform,target,parallel,jobs,no_parallel_checkout,verbose,force_checkout,force_compile)

if __name__ == "__main__":
fremake_run()

0 comments on commit 6a13ab5

Please sign in to comment.