Skip to content

Commit

Permalink
depformat for tests/rules.hancho
Browse files Browse the repository at this point in the history
  • Loading branch information
aappleby committed Mar 12, 2024
1 parent 00dcf2a commit 85a5534
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/rules.hancho
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ from hancho import *
import os

if os.name == 'nt':
config.depformat = "msvc"
compile_command = "cl.exe /c {files_in} /sourceDependencies {depfile} /Fo:{files_out}"
elif os.name == 'posix':
config.depformat = "gcc"
compile_command = "gcc -MMD -c {files_in} -o {files_out}"
else:
compile_command = "<unknown OS>"
Expand Down

0 comments on commit 85a5534

Please sign in to comment.