Skip to content

Commit

Permalink
allow setting ompFlag on command line
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosborn committed Feb 5, 2025
1 parent edf3289 commit 15530e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/omp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ when defined(noOpenmp):
else:
static: echo "Using OpenMP"
when existsEnv("OMPFLAG"):
const ompFlag = getEnv("OMPFLAG")
const ompFlag {.strDefine.} = getEnv("OMPFLAG")
else:
const ompFlag = "-fopenmp"
const ompFlag {.strDefine.} = "-fopenmp"
{. passC: ompFlag .}
{. passL: ompFlag .}
{. pragma: omp, header:"omp.h" .}
Expand Down

0 comments on commit 15530e7

Please sign in to comment.