Skip to content

Commit

Permalink
remove -D flags
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Jan 25, 2024
1 parent b411ace commit fd68870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/tasks/deploy_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def create_local_build_archive(frame: Frame, build_dir: str, build_id: str, nim_
if " -o frameos " in line and " -l" in line:
linker_flags = [flag.strip() for flag in line.split(' ') if flag.startswith('-') and flag != '-o']
elif " -c " in line and len(compiler_flags) == 0:
compiler_flags = [flag for flag in line.split(' ') if flag.startswith('-') and not flag.startswith('-I') and not flag in ['-o', '-c']]
compiler_flags = [flag for flag in line.split(' ') if flag.startswith('-') and not flag.startswith('-I') and not flag in ['-o', '-c', '-D']]

# Read the Makefile from ../frameos/tools/nimc.Makefile
with open(os.path.join(source_dir, "tools", "nimc.Makefile"), "r") as makefile:
Expand Down

0 comments on commit fd68870

Please sign in to comment.