Skip to content

Commit

Permalink
Remove -DNDEBUG in cflags from llvm-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Mar 4, 2012
1 parent 3e55abc commit a79dfa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rakelib/blueprint.rb
Expand Up @@ -101,6 +101,7 @@
flags = `#{perl} #{conf} --cflags`.strip.split(/\s+/)
flags.delete_if { |x| x.index("-O") == 0 || x.index("-I") == 0 }
flags.delete_if { |x| x =~ /-D__STDC/ }
flags.delete_if { |x| x == "-DNDEBUG" }
flags << "-Ivendor/llvm/include" << "-DENABLE_LLVM"
l.cflags = flags

Expand All @@ -127,6 +128,7 @@
flags = `#{perl} #{conf} --cflags`.strip.split(/\s+/)
flags.delete_if { |x| x.index("-O") == 0 }
flags.delete_if { |x| x =~ /-D__STDC/ }
flags.delete_if { |x| x == "-DNDEBUG" }
flags << "-DENABLE_LLVM"
gcc.cflags.concat flags
gcc.ldflags.concat `#{perl} #{conf} --ldflags --libfiles`.strip.split(/\s+/)
Expand Down

0 comments on commit a79dfa3

Please sign in to comment.