Skip to content

Commit

Permalink
build script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
flysand7 committed Jul 19, 2022
1 parent 3028260 commit ecba3cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bake.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
platform = 'win'

definitions = []
inc_folders = ['ryu']
inc_folders = ['.']


# Compiler-specific options
Expand Down Expand Up @@ -58,11 +58,11 @@ def nasm_compile(file_name):
# Compile the object files
compile_map = {}
compile_map['.c'] = clang_compile
compile(os.path.normpath('ryu'), compile_map)
compile(os.path.normpath('.'), compile_map)

# Make an archive of all object files
obj_paths = []
for dir, _, f in os.walk('bin'):
if len(f) != 0:
obj_paths.append(os.path.join(dir, '*.obj'))
subprocess.run(['llvm-ar', 'rc', 'ryu.lib'] + obj_paths)
subprocess.run(['llvm-ar', 'rc', 'fdec64.lib'] + obj_paths)

0 comments on commit ecba3cd

Please sign in to comment.