@@ -91,7 +91,7 @@ compilers_flags.cc = {
91
91
ext = ' .c' ,
92
92
}
93
93
-- GCC
94
- compilers_flags .gcc = tabler .updatecopy (compilers_flags .cc , {
94
+ compilers_flags .gcc = tabler .copyupdate (compilers_flags .cc , {
95
95
cflags_base = " -fwrapv -fno-strict-aliasing" ,
96
96
cflags_sanitize = " -Wall -Wextra -fsanitize=address,undefined" ,
97
97
cflags_devel = " -g" ,
@@ -107,42 +107,42 @@ compilers_flags.gcc = tabler.updatecopy(compilers_flags.cc, {
107
107
cmd_defines = ' $(cc) -E -dM -x c "$(cfile)" -x none $(cflags)' ,
108
108
})
109
109
-- Emscripten CC
110
- compilers_flags .emcc = tabler .updatecopy (compilers_flags .gcc , {
110
+ compilers_flags .emcc = tabler .copyupdate (compilers_flags .gcc , {
111
111
cflags_release = " -Oz -DNDEBUG" ,
112
112
cflags_maximum_performance = " -O3 -ffast-math -DNDEBUG -fno-plt -flto" ,
113
113
})
114
114
-- Clang
115
- compilers_flags .clang = tabler .updatecopy (compilers_flags .gcc , {
115
+ compilers_flags .clang = tabler .copyupdate (compilers_flags .gcc , {
116
116
cmd_compile = ' $(cc) -x c "$(cfile)" -x none -Wno-unused-command-line-argument $(cflags) -o "$(binfile)"' ,
117
117
cmd_info = ' $(cc) -E -x c "$(cfile)" -x none -Wno-unused-command-line-argument $(cflags)' ,
118
118
cmd_defines = ' $(cc) -E -dM -x c "$(cfile)" -x none -Wno-unused-command-line-argument $(cflags)' ,
119
119
})
120
120
-- TCC
121
- compilers_flags .tcc = tabler .updatecopy (compilers_flags .cc , {
121
+ compilers_flags .tcc = tabler .copyupdate (compilers_flags .cc , {
122
122
cflags_base = " -w" ,
123
123
cflags_devel = " -g" ,
124
124
cflags_debug = " -g" ,
125
125
})
126
126
-- C2M
127
- compilers_flags .c2m = tabler .updatecopy (compilers_flags .cc , {
127
+ compilers_flags .c2m = tabler .copyupdate (compilers_flags .cc , {
128
128
cflags_base = " -w" ,
129
129
cflags_shared_lib = " -c" ,
130
130
})
131
131
-- GCC (C++)
132
- compilers_flags [' g++' ] = tabler .updatecopy (compilers_flags .gcc , {
132
+ compilers_flags [' g++' ] = tabler .copyupdate (compilers_flags .gcc , {
133
133
cmd_compile = ' $(cc) -x c++ "$(cfile)" -x none $(cflags) -o "$(binfile)"' ,
134
134
cmd_info = ' $(cc) -E -x c++ "$(cfile)" -x none $(cflags)' ,
135
135
cmd_defines = ' $(cc) -E -dM -x c++ "$(cfile)" -x none $(cflags)' ,
136
136
ext = ' .cpp' ,
137
137
})
138
138
-- Clang (C++)
139
- compilers_flags [' clang++' ] = tabler .updatecopy (compilers_flags [' g++' ], {
139
+ compilers_flags [' clang++' ] = tabler .copyupdate (compilers_flags [' g++' ], {
140
140
cmd_compile = ' $(cc) -x c++ "$(cfile)" -x none -Wno-unused-command-line-argument $(cflags) -o "$(binfile)"' ,
141
141
cmd_info = ' $(cc) -E -x c++ "$(cfile)" -x none -Wno-unused-command-line-argument $(cflags)' ,
142
142
cmd_defines = ' $(cc) -E -dM -x c++ "$(cfile)" -x none -Wno-unused-command-line-argument $(cflags)' ,
143
143
})
144
144
-- NVCC (CUDA C++)
145
- compilers_flags [' nvcc' ] = tabler .updatecopy (compilers_flags .gcc , {
145
+ compilers_flags [' nvcc' ] = tabler .copyupdate (compilers_flags .gcc , {
146
146
cflags_base = " " ,
147
147
cmd_compile = ' $(cc) -x cu "$(cfile)" $(cflags) -o "$(binfile)"' ,
148
148
cmd_info = ' $(cc) -E -x cu "$(cfile)" $(cflags)' ,
0 commit comments