remove dead code elimination option (#7669)
This commit is contained in:
parent
a8b70c5500
commit
72dfe176f5
57 changed files with 67 additions and 122 deletions
|
|
@ -23,7 +23,6 @@ const Lib = "libchipmunk.so.6.1.1"
|
|||
|
||||
when defined(MoreNim):
|
||||
{.hint: "MoreNim defined; some Chipmunk functions replaced in Nim".}
|
||||
{.deadCodeElim: on.}
|
||||
from math import sqrt, sin, cos, arctan2
|
||||
when defined(CpUseFloat):
|
||||
{.hint: "CpUseFloat defined; using float32 as float".}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
const Lib = "libenet.so.1(|.0.3)"
|
||||
|
||||
{.deadCodeElim: on.}
|
||||
const
|
||||
ENET_VERSION_MAJOR* = 1
|
||||
ENET_VERSION_MINOR* = 3
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import macros
|
||||
{.deadCodeElim: on.}
|
||||
|
||||
#Inline macro.add() to allow for easier nesting
|
||||
proc und*(a: NimNode; b: NimNode): NimNode {.compileTime.} =
|
||||
a.add(b)
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ else:
|
|||
LibS = "libcsfml-system.so.2.0"
|
||||
LibW = "libcsfml-window.so.2.0"
|
||||
#{.error: "Platform unsupported".}
|
||||
{.deadCodeElim: on.}
|
||||
|
||||
{.pragma: pf, pure, final.}
|
||||
type
|
||||
PClock* = ptr TClock
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import sfml
|
||||
{.deadCodeElim: on.}
|
||||
|
||||
let
|
||||
Black*: TColor = color(0, 0, 0)
|
||||
White*: TColor = color(255, 255, 255)
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
import sfml, math, strutils
|
||||
{.deadCodeElim: on.}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import
|
|||
sg_gui, sg_assets, sound_buffer, enet_client
|
||||
when defined(profiler):
|
||||
import nimprof
|
||||
{.deadCodeElim: on.}
|
||||
|
||||
type
|
||||
PPlayer* = ref TPlayer
|
||||
TPlayer* = object
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import
|
|||
sfml, sfml_colors,
|
||||
input_helpers, sg_packets
|
||||
from strutils import countlines
|
||||
{.deadCodeElim: on.}
|
||||
|
||||
type
|
||||
PGuiContainer* = ref TGuiContainer
|
||||
TGuiContainer* = object of TObject
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
debugger = off
|
||||
deadCodeElim = on
|
||||
path = ".."
|
||||
path = "../genpacket"
|
||||
path = "../helpers"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue