Skip to content

Commit

Permalink
Quote include directory names for make file
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Sep 2, 2024
1 parent 6f60168 commit 28f7bd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brian2/devices/cpp_standalone/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,8 @@ def build(

compiler_obj = ccompiler.new_compiler(compiler=compiler)
compiler_flags = (
ccompiler.gen_preprocess_options(define_macros, include_dirs)
[f"-D{k}" if v is None else f"-D{k}={v}" for k, v in define_macros]
+ [f"-I'{include_dir}'" for include_dir in include_dirs]
+ extra_compile_args
)
linker_flags = (
Expand Down

0 comments on commit 28f7bd5

Please sign in to comment.