1
0
Fork 0

bam.lua: call TableDeepCopy() when copying global_settings as just assigning it to a variable only creates a reference.

This commit is contained in:
Henrik Hautakoski 2020-01-07 06:28:24 +01:00
parent b53ddfb3fa
commit b564758ff6
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745

View file

@ -74,7 +74,7 @@ end
-- --
--------------------------------
local settings = global_settings
local settings = TableDeepCopy(global_settings)
settings.cc.includes:Add("include/")
settings.cc.includes:Add("source/")
@ -219,7 +219,7 @@ local libspectre = StaticLibrary(settings,
-- --
--------------------------------
local example_settings = global_settings
local example_settings = TableDeepCopy(global_settings)
-- Include spectre headers.
example_settings.cc.includes:Add("include/")