Skip to content

Commit 10f0031

Browse files
committed
Move lib arg order
Signed-off-by: John Parent <john.parent@kitware.com>
1 parent 091793f commit 10f0031

3 files changed

Lines changed: 48 additions & 35 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ name: ci
66

77
on: [pull_request, push]
88

9-
109
concurrency:
1110
group: ci-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
1211
cancel-in-progress: true
@@ -35,5 +34,5 @@ jobs:
3534
- uses: actions/upload-artifact@v4
3635
if: always()
3736
with:
38-
name: tester
39-
path: tmp/test/tester.exe
37+
name: tests
38+
path: tmp

Makefile

Lines changed: 44 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ install : cl.exe
6666
mklink $(PREFIX)\relocate.exe $(PREFIX)\cl.exe
6767

6868
setup_test: cl.exe
69-
echo "-------------------"
70-
echo "Running Test Setup"
71-
echo "-------------------"
69+
@echo \n
70+
@echo -------------------
71+
@echo Running Test Setup
72+
@echo -------------------
7273
-@ if NOT EXIST "tmp\test" mkdir "tmp\test"
7374
cd tmp\test
7475
copy ..\..\cl.exe cl.exe
@@ -80,9 +81,10 @@ setup_test: cl.exe
8081
# * space in a path - preserved by quoted arguments
8182
# * escaped quoted arguments
8283
build_and_check_test_sample : setup_test
83-
echo "--------------------"
84-
echo "Building Test Sample"
85-
echo "--------------------"
84+
@echo \n
85+
@echo --------------------
86+
@echo Building Test Sample
87+
@echo --------------------
8688
cd tmp\test
8789
cl /c /EHsc "..\..\test\src file\calc.cxx" /DCALC_EXPORTS /DCALC_HEADER="\"calc header/calc.h\"" /I ..\..\test\include
8890
cl /c /EHsc ..\..\test\main.cxx /I ..\..\test\include
@@ -94,9 +96,10 @@ build_and_check_test_sample : setup_test
9496
# Test basic wrapper behavior - did the absolute path to the DLL get injected
9597
# into the executable
9698
test_wrapper : build_and_check_test_sample
97-
echo "--------------------"
98-
echo "Running Wrapper Test"
99-
echo "--------------------"
99+
@echo \n
100+
@echo --------------------
101+
@echo Running Wrapper Test
102+
@echo --------------------
100103
cd tmp
101104
move test\tester.exe .\tester.exe
102105
.\tester.exe
@@ -110,9 +113,10 @@ test_wrapper : build_and_check_test_sample
110113

111114
# Test relocating an executable - re-write internal paths to dlls
112115
test_relocate_exe: build_and_check_test_sample
113-
echo "--------------------------"
114-
echo "Running Relocate Exe Test"
115-
echo "--------------------------"
116+
@echo \n
117+
@echo --------------------------
118+
@echo Running Relocate Exe Test
119+
@echo --------------------------
116120
cd tmp\test
117121
-@ if NOT EXIST "relocate.exe" mklink relocate.exe cl.exe
118122
move calc.dll ..\calc.dll
@@ -124,9 +128,10 @@ test_relocate_exe: build_and_check_test_sample
124128

125129
# Test relocating a dll - re-write import library
126130
test_relocate_dll: build_and_check_test_sample
127-
echo "--------------------------"
128-
echo "Running Relocate DLL test"
129-
echo "--------------------------"
131+
@echo \n
132+
@echo --------------------------
133+
@echo Running Relocate DLL test
134+
@echo --------------------------
130135
cd tmp/test
131136
-@ if NOT EXIST "relocate.exe" mklink relocate.exe cl.exe
132137
cd ..
@@ -142,9 +147,10 @@ test_relocate_dll: build_and_check_test_sample
142147
cd ../..
143148

144149
test_pipe_overflow: build_and_check_test_sample
145-
echo "--------------------"
146-
echo " Pipe overflow test"
147-
echo "--------------------"
150+
@echo \n
151+
@echo --------------------
152+
@echo Pipe overflow test
153+
@echo --------------------
148154
set SPACK_CC_TMP=%SPACK_CC%
149155
set SPACK_CC=$(MAKEDIR)\test\lots-of-output.bat
150156
cl /c /EHsc "test\src file\calc.cxx"
@@ -154,18 +160,20 @@ build_zerowrite_test: test\writezero.obj
154160
link $(LFLAGS) $** Shlwapi.lib /out:writezero.exe
155161

156162
test_zerowrite: build_zerowrite_test
157-
echo "-----------------------"
158-
echo "Running zerowrite test"
159-
echo "-----------------------"
163+
@echo \n
164+
@echo -----------------------
165+
@echo Running zerowrite test
166+
@echo -----------------------
160167
set SPACK_CC_TMP=%SPACK_CC%
161168
set SPACK_CC=$(MAKEDIR)\writezero.exe
162169
cl /c EHsc "test\src file\calc.cxx"
163170
set SPACK_CC=%SPACK_CC_TMP%
164171

165172
test_long_paths: build_and_check_test_sample
166-
echo "------------------------"
167-
echo "Running long paths test"
168-
echo "------------------------"
173+
@echo \n
174+
@echo ------------------------
175+
@echo Running long paths test
176+
@echo ------------------------
169177
mkdir tmp\tmp\verylongdirectoryname\evenlongersubdirectoryname
170178
xcopy /E test\include tmp\tmp\verylongdirectoryname\evenlongersubdirectoryname
171179
xcopy /E "test\src file" tmp\tmp\verylongdirectoryname\evenlongersubdirectoryname
@@ -182,9 +190,10 @@ test_long_paths: build_and_check_test_sample
182190
cd ../../../..
183191

184192
test_relocate_long_paths: test_long_paths
185-
echo "---------------------------------"
186-
echo "Running relocate logn paths test"
187-
echo "---------------------------------"
193+
@echo \n
194+
@echo ---------------------------------
195+
@echo Running relocate logn paths test
196+
@echo ---------------------------------
188197
cd tmp\tmp\verylongdirectoryname\evenlongersubdirectoryname
189198
-@ if NOT EXIST "relocate.exe" mklink relocate.exe cl.exe
190199
cd ..
@@ -200,9 +209,10 @@ test_relocate_long_paths: test_long_paths
200209
cd ../../../..
201210

202211
test_exe_with_exports:
203-
echo ------------------------------
204-
echo Running exe with exports test
205-
echo ------------------------------
212+
@echo \n
213+
@echo ------------------------------
214+
@echo Running exe with exports test
215+
@echo ------------------------------
206216
mkdir tmp\test\exe_with_exports
207217
xcopy /E test\include tmp\test\exe_with_exports
208218
xcopy /E "test\src file" tmp\test\exe_with_exports
@@ -223,6 +233,10 @@ test_exe_with_exports:
223233
cd ../../..
224234

225235
test_def_file_name_override:
236+
@echo
237+
@echo ------------------------------------
238+
@echo Running Def file name override test
239+
@echo ------------------------------------
226240
mkdir tmp\test\def\def_override
227241
xcopy /E test\include tmp\test\def\def_override
228242
xcopy /E "test\src file" tmp\test\def\def_override

src/toolchain.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ void ToolChainInvocation::InterpolateSpackEnv(SpackEnvState& spackenv) {
3737

3838
DWORD ToolChainInvocation::InvokeToolchain() {
3939
StrList const command_line(ToolChainInvocation::ComposeCommandLists(
40-
{this->command_args, this->include_args, this->lib_args,
41-
this->lib_dir_args, this->obj_args}));
40+
{this->command_args, this->include_args, this->lib_dir_args,
41+
this->obj_args, this->lib_args}));
4242
this->executor = ExecuteCommand(this->command, command_line);
4343
debug("Setting up executor for " + std::string(typeid(*this).name()) +
4444
"toolchain");

0 commit comments

Comments
 (0)