diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-11-21 11:13:28 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-11-21 13:26:29 +0100 |
commit | a7869c0bd65faacdd008284df9ab07de7df3d445 (patch) | |
tree | 8d83ab0b23cd504ddf5c5eeddf5a322fd81db3ed /test/suite/ctor_files/ctor.cc.bar | |
parent | 28531aed4d1654cdb6f590e92448bc0ba3ab755b (diff) |
Bundle flags in struct for easier passing around.
Diffstat (limited to 'test/suite/ctor_files/ctor.cc.bar')
-rw-r--r-- | test/suite/ctor_files/ctor.cc.bar | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/test/suite/ctor_files/ctor.cc.bar b/test/suite/ctor_files/ctor.cc.bar index 2c9df2a..92456cb 100644 --- a/test/suite/ctor_files/ctor.cc.bar +++ b/test/suite/ctor_files/ctor.cc.bar @@ -16,12 +16,14 @@ BuildConfigurations ctorConfigs() .sources = { "hello.cc", }, - .cxxflags = { - "-std=c++20", - "-O3", - "-g", - "-Wall", - "-Werror", + .flags = { + .cxxflags = { + "-std=c++20", + "-O3", + "-g", + "-Wall", + "-Werror", + }, }, .externals = {"bar"}, } @@ -34,10 +36,12 @@ ExternalConfigurations ctorExtConfigs() { { .name = "bar", - .cxxflags = { "-D_A_", "-DBAR"}, - .cflags = { "-D_B_" }, - .ldflags = { "-D_C_" }, - .asmflags = { "-D_D_" }, + .flags = { + .cxxflags = { "-D_A_", "-DBAR"}, + .cflags = { "-D_B_" }, + .ldflags = { "-D_C_" }, + .asmflags = { "-D_D_" }, + }, // Creates --with-foo-prefix arg to configure which will be used for // -L and -I flags. // If not specified configure will try to find them in the system paths. |