Something like `make -jN` for building?

Hi, how i can set only one job (-j1) in a multihread build?

i have some error in the code but i cant find witch fail when build it in pio because is builded in miltithread mode (40threads in my machine). i think set “-j1” when build i can able depure the code

any hint? I cant find it in the documentation

greetings

Implemented in PlatformIO Core 4.0. See Redirecting...

Hi, that is implemented in the rc releases?, Because i use platformio rc builds (used rc3 or rc4 when wrote the post)

Greetings

PlatformIO Core 4.0 has been just released => Releases · platformio/platformio-core · GitHub

Please switch to the stable version via pio upgrade.

oh!. great news

greetings

Hey, guys!

Please specify where I need use this option: “-j, --jobs” if I use VSCode?

Thanks!

When you want to do what exactly? Compile on all cores or use a single core?

I need use single core.

@ivankravets can you change default --jobs value for a pio run call in the VSCode extension settings? I think that would solve his problem.

1 Like

Yes, there is an option for this case:

Also, @savenko_egor can create custom task with own pio run options Redirecting...

2 Likes

Blockquote
http://docs.platformio.org/en/latest/userguide/cmd_run.html#cmdoption-platformio-run-j

I see this link. Thanks. But I don’t know where I need use this option in VSCode.
You can specify?

Read the second bit of the reply specifically addressed to you :stuck_out_tongue:

Also, @savenko_egor can create custom task with own pio run options http://docs.platformio.org/en/latest/ide/vscode.html#custom-tasks

Hint: Ivan’s saying you can add custom tasks, with which you can then specify options like -j

1 Like

Okay. Thanks for all!
I will try use custom task.

1 Like

I tried this, per this conversation :

{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "PlatformIO",
			"task": "Build",
			"problemMatcher": [
				"$platformio"
			],
			"group": "build",
			"label": "PlatformIO: Build",
			"options": {
				"shell": {
                    "executable": "platformio",
                    "args": [
                        "-j", "1"
                    ]
				}
			}
		}
	]
}

But that doesn’t seem to be working.